Move user and roles from one instance to another

paradise624
Tera Contributor

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?

7 REPLIES 7

Prasad Pagar
Mega Sage

Hi @paradise624 

1. For update set - When you export from once instance into another instance they got inserted in 'Retrieved Update sets' and in Preview state

find_real_file.png

2. You need to manually go in this table open that Previewed update set and commit it

find_real_file.png

find_real_file.png

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

 

Hi @paradise624 

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

Gaurav Shirsat
Mega Sage

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