Role Based Access - Access to Only Members assignment group Tasks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 05:36 AM
Hello,
We are looking into getting an assignment group created to give a 3rd party contractor access to work on REQ/RITM/SCTasks that are assigned to their group. I have created a role and an assignment group but looking for guidance and best practices on how to get them access only to the tasks assigned to their group. We don not want them to see any other groups work while not restricting the rest of our groups from seeing others tasks.
I'm unsure on what ACLs and queries to update and am looking for some help. I have assigned the new role to our CSM subscription so that we don't have any licensing issues.
Thank you in advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2024 07:40 AM
I was able to get this to work, but now how would I be able to let the users also view the Requested Item and Request records? The RITM and REQ do not have an "assignment group" so I am unsure on how to let them view those records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2024 07:02 AM
Hi @Dillin Bradley, Have you tried the Before Query Business Rule something like below?
(function executeRule(current, previous /*null when async*/ ) {
if (gs.hasRole('<custom_role>') || gs.getUser().isMemberOf('<group_sysid>')) {
current.addEncodedQuery("assignment_groupDYNAMICd6435e965f510100a9ad2572f2b47744");
} else {
return
}
})(current, previous);
Regards,
Sunil