- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 09:14 AM
Hello,
How to get list of users who has no roles except 'snc_internal' role only ?
Thanks,
Tarun
'
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 09:32 AM
Hey,
You can refer to below article and response by Akash Gurram, just replace sys_id of itil role with snc_internal:
How to get list of user who have only ITIL role?
Feel free to mark correct, If I answered your query.
Will be helpful for future visitors looking for similar questions 🙂
Aman Kumar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 09:27 AM
Hi,
You could use GlideAggregate to query the sys_user_has_role table and then with the results, check to see if that one role is all they have and the count is 1, if so, push them to an array, just an example for scripting.
You didn't give much information where you're trying to do this, like a report or somewhere else?
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 09:31 AM
Hello,
You can navigate like below
sys_user_has_role.LIST in left navigator and a table opens up whre you can find all users with roles and there you can filter snc_internal guys
Please mark my response correct if it helped you
Please mark my answer correct if it helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 11:50 AM
This will fetch even users with other roles as well
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2022 12:43 PM