- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2018 10:38 AM
I have this BR that helps filters out assignment groups depending on the role. I have this one user that has both sn_customerservice_agent and itil role. But when I impersonate her I'm unable to pull any of the groups up under incidents and case. Can someone help?


Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2018 10:44 AM
Hi Johnvo,
Is that your complete code?
Why 2 times if statement is being used?
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2018 10:46 AM
Well I don't want ITIL to see the about groups and vice versa. But this particular user has both of the roles in the script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2018 10:47 AM
I don't want ITIL to see the above groups and customerservice agent to not see the bottom groups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2018 10:45 AM
I think you should change the second if condition to else if and try.
Please mark this response as correct or helpful if it assisted you with your question.