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
Updated the readme to reflect the changes to the script. Additionally, included the link to Access Analyzer which provides Role comparison in the UI OOTB
Provide the usernames of two users and this script will print out the roles they share and the roles they don't share.
3
4
4
-
## Usage
5
-
Run script in **compare-roles-2-users.js** in Scripts - Background
5
+
> ⚠️ **Note:** ServiceNow provides out-of-the-box functionality for comparing user access via the **Access Analyzer** . You can learn more here: https://www.servicenow.com/docs/bundle/zurich-platform-security/page/integrate/identity/task/comparing-access-controlss**
6
+
>
7
+
**Parameters:**
8
+
-**includeInheritedRoles:**
9
+
-`false` – only directly assigned roles
10
+
-`true` – include roles inherited from other roles or groups
11
+
12
+
-**usernameA**
13
+
- Username of a `sys_user`
14
+
15
+
-**usernameB**
16
+
- Username of a `sys_user`
17
+
18
+
The script will output:
19
+
- Roles exclusive to user A
20
+
- Roles exclusive to user B
21
+
- Shared roles
6
22
7
-
***Parameters:**
8
-
-**include_inherited_roles:**
9
-
- False - only directly assigned roles
10
-
- True - roles inherited from other roles or groups
0 commit comments