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
This script is used in ServiceNow to remove the admin role from all users except the one running the script.
2
+
It's typically used during a security audit or access cleanup to ensure that only authorized users retain administrative access.
3
+
By targeting the sys_user_has_role table and checking for the admin role, it deletes role assignments for all users except the current user, helping reduce the risk of
4
+
unauthorized changes or privilege misuse in the system.
0 commit comments