Adding users to groups in Non production Environments
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 12:04 AM
Hi
I have a requirement. We have a service request in production which automatically adds users to groups once the SR is approved.
Now we want that if a users is added to a group in prod, the same should be automatically done in non prod environment.
We don't want to manually go to non prod and add user there to the group, rather we would like to happen that automatically like it happens in production without creating another Service Request or flow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 12:13 AM - edited 07-22-2024 02:53 AM
You will need to setup an integration between your PROD/NonProd instances, to be triggered on the adding/removing of users to a group.
You do need to verify if the users are the same (sys_id) or create the logic to make sure that the correct user is found.
By the way: it's worth to check on 'Instance Data Replication' (https://docs.servicenow.com/bundle/washingtondc-servicenow-platform/page/administer/instance-data-re... although you my need to change licensing for this.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 12:17 AM
Hello @Nafeesa bashir,
Follow below process if relatable:
- Create an Update Set in the production instance and capture the changes when a user is added to a group.
- Export this Update Set and import it into the non-production instance. You can create scheduled jobs to export and import these Update Sets periodically.
Thank you!!
Dnyaneshwaree Satpute
Tera Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 01:58 AM
You either need to establish an active sync between the two instances or make a REST API call from the Prod instance towards Dev instance. You can orchestrate this through a flow with trigger type as Record Created in sys_user table followed with relevant trigger conditions. Inside the flow, you could make a REST API call towards the Dev instance and do a validation as well if the users are properly created or not.
Thanks and Regards
Amit Verma
Please mark this response as correct and helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2024 02:37 AM
Hi @Nafeesa bashir ,
You have to setup an integration for this use case betweeen your prod and non prod instance.
Please check the below article, which explains the steps to setup the integration. Instead on incident, you will select the [sys_user] table and update/map the fields accordingly.
ServiceNow to ServiceNow Integration - Step by Step Guide
Mark this as Helpful / Accept the Solution if this helps
Mark this as Helpful / Accept the Solution if this helps.