Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to automate the process of adding users to appropriate groups and assigning roles in ServiceNow.

Ria
Tera Contributor

How to automate the process of adding users to appropriate groups and assigning roles that are not directly inherited from the group, based on the Reference or Mirror ID field. This field contain the name of a person who already has access to ServiceNow.

Once the request is approved:
If a Reference or Mirror ID is provided, the system should automatically add the user to the relevant group and assign the necessary roles.
After the user is added and roles are assigned, the request should be automatically closed.
If no Reference or Mirror ID is provided, access will need to be granted manually.

5 REPLIES 5

@Ria 

I already shared the approach and sample script earlier.

Please refer that and enhance it as per your requirement.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader