how to create relationship between users, roles and groups in service now

Srinivasu2
Tera Contributor

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 

 

RolesGroups
sn_customerservice_managerAgent manager
sn_customerservice.customerCustomer
sn_customerservice.customer_adminCustomer Admin

 

Thanks,

Srinivasu Sagiraju

3 REPLIES 3

Gangadhar Ravi
Giga Sage
Giga Sage

Hi @Srinivasu2 

 

Please check this

 https://developer.servicenow.com/dev.do#!/learn/learning-plans/washingtondc/citizen_developer/app_st...

Please mark my answer correct and helpful if this works for you.

OlaN
Giga Sage
Giga Sage

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.

Robbie
Kilo Patron
Kilo Patron

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