Move user and roles from one instance to another
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-11-2021 08:32 PM
Hi All,
I've created a new user and role in DEV along with a few ACLs in 2 update sets. I then batched those 2 update sets and exported them out as XML and imported them into Test,
Now that I'm in test I see the user and role made it over in the update set to test, however I don't see the user or role in test. What happened? Why don't I see the user or role eventhough it made it over to test in the xml import?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2021 10:29 PM
Hi
1. For update set - When you export from once instance into another instance they got inserted in 'Retrieved Update sets' and in Preview state
2. You need to manually go in this table open that Previewed update set and commit it
2. If you are importing Roles, User, Data basically anything other than update set you dont need to perform above steps. They will get inserted automatically in required table.
Extra addon -
1. You can import any xml from any list view. ServiceNow is too smart to understand which table it need to insert those xml records
2. Always do run preview again as best practice after importing update set xml to make sure it not resulting into any preview errors.
Hope this helps 🙂
Please mark my answer correct and helpful if applicable.
Thank you
Prasad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2021 11:54 PM
Hi
Did you get chance to check my answer?
Just curious to know if your issue is resolved now.
If yes, can you please mark appropriate response as correct for others who may have a similar question in the future and close this unresolved thread.
If not, please let us know if you need any other help
Thank you
Prasad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-30-2021 12:00 AM
Hello
Roles, User are the records which don't get capture in update set.
You need to create one xml of this record separately.
then import this xml file.
refer below script to forcefully capture of the records
https://servicenowguru.com/system-definition/manual-update-set-inclusion/\
also refer my script
var rec = new GlideRecord('sysauto_script');
rec.get(''); //sys_id of the record
//Push the record into the current update set
var um = new GlideUpdateManager2();
um.saveRecord(rec);
Please Mark Correct and Helpful
Thanks and Regards
Gaurav Shirsat