- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-12-2019 12:49 AM
Hello,
I have a requirement to make one field visible for a specific assignment group in catalog task. Say for example, a catalog task has been created and assigned to one particular assignment group 'X' via workflow/catalog group mapping, while raising a request using a service catalog. And the 'X' group member assign that particular task to another assignment group 'Y'. And a field (a string with drop down values) has to be visible only for the group 'Y' and not for 'X', in that catalog task.
I tried in UI policy, but the field is getting visible in both the groups. Tried ACL also, but not working.
Please let me know if you have any work around.
Thanks,
Amith.
Solved! Go to Solution.
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2019 02:12 AM
Hi Amith,
You can achieve the above requirement using ACL's. You have to create two acls on task table for that particular field.
One for read access & other is for write access.
You have to use this below script in read acl:
answer = false;
if(gs.getUser().isMemberOf(current.assignment_group)) {
answer = true;
}
You have to use this below script in write acl:
answer = false;
if (gs.getUser().isMemberOf(current.assignment_group)) {
answer = true;
}
Regards,
Koptaiah Sadari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2019 02:12 AM
Hi Amith,
You can achieve the above requirement using ACL's. You have to create two acls on task table for that particular field.
One for read access & other is for write access.
You have to use this below script in read acl:
answer = false;
if(gs.getUser().isMemberOf(current.assignment_group)) {
answer = true;
}
You have to use this below script in write acl:
answer = false;
if (gs.getUser().isMemberOf(current.assignment_group)) {
answer = true;
}
Regards,
Koptaiah Sadari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-24-2019 05:35 AM
Hi Koptaiah,
Thanks much. It worked for me by writing the ACL.
Cheers,
Amith.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2020 05:30 AM
Koptaiah,
I've try this and it doesn't work. So current.assignment_group should just be the name of the group correct?
Thanks,
John