You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 537839e
Browse filesBrowse the repository at this point in the historyBrowse files
This script identifies active users in ServiceNow who have no group memberships and no roles assigned.
2
+
It queries the sys_user table for all active users, then checks each user against the sys_user_grmember table (groups) and the sys_user_has_role table (roles).
3
+
If a user has no associated groups and no assigned roles, their username is added to a list called orphanedUsers.
4
+
Finally, the script prints the list, which can be used for user cleanup, security audits, or compliance purposes to ensure proper user management.
0 commit comments