Export users from production to dev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I have some users in production instance that are not available in dev instance I want to export from prod to dev I want only 10 users from prod how to do that
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
Hi @VenkataSreC
In the sys_user list:
- Apply your filter (only your 10 chosen users).
- Right-click the header → Export → XML.
This XML export is different from an update set — it will let you import directly into Dev without bringing other unwanted changes.
Import into Dev. In your Dev instance:
- Go to System Definition → Tables → sys_user.
- Right-click the header → Import XML.
- Upload the XML you exported from Prod.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @VenkataSreC
How to Export and Import Users via XML
In Target Instance
-
Go to the User table in list view.
-
Get the 10 users you want in the list view.
-
Right-click on any field header in the list view.
-
Select export XML.
In (Dev) Instance
-
Open the User table in list view.
-
Right-click on any field header.
-
Select Import → XML.
-
Save the file.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @VenkataSreC ,
you can take the XMLs of those records and import them into your dev instance
refer this video for the same
also you can export sys_user_has_role and sys_user_grmember table records if reqiuired
https://www.youtube.com/watch?v=gI3JwXP6vK0
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @VenkataSreC ,
As other community members have already shared:
Export users from the sys_user table in your Production instance, then import the XML into your Development instance.
However, keep in mind:
Roles and group memberships are not included when exporting only from the sys_user table.
To fully replicate user access in Dev:
Roles
Export from sys_user_has_role where user = <specific user>
→ Ensures roles (e.g., itil, admin) are retained.Group Memberships
Export from sys_user_grmember where user = <specific user>
→ Ensure groups (e.g., support or assignment groups) are retained.
Export and import the following tables for complete user access replication: sys_user, sys_user_grmember, sys_user_has_role
Hope it works!
If this was helpful, please mark this as accepted solution.
Thank you!
Shashank Jain – Software Engineer | Turning issues into insights