how to create relationship between users, roles and groups in service now
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 10:41 AM
Hi Community,
How can a relationship be established among users, roles, and groups in ServiceNow?
I need to create new groups named customer, customer admin, and Agent manager in ServiceNow. Whenever we add users to these groups, they should automatically be assigned their respective roles
Roles | Groups |
sn_customerservice_manager | Agent manager |
sn_customerservice.customer | Customer |
sn_customerservice.customer_admin | Customer Admin |
Thanks,
Srinivasu Sagiraju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 10:57 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 10:58 AM
Hi,
Just add the roles to the groups. Then when you add members to the groups, the users will automatically get the roles assigned to the group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2024 10:59 AM - edited 06-26-2024 11:00 AM
Hi @Srinivasu2,
This relationship is already set up for you as part of the core functionally.
Essentially, if you create a group and add a role to that group, all users then added to the group inherit the role.
No code is required. Simply create your groups and once the group record is saved, you’ll see a ‘Roles’ tab (Related list) at the bottom of the page.
Add the appropriate role per group, then add the users to the group - job done.
It’s all configuration.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks,
Robbie