Issue with users domain assignment

Community Alums
Not applicable

Hello All,

 

I am facing an issue with the domain assignment to the users. I am getting users from LDAP, I have the company field mapped in the transform map.

The issue is that the domain of some users is set to global; for some, it is set to the required domain for the same company.

Previously we were using two domains to separate data, now we are only using a single domain. So, is there any way to directly add all the users to this domain?

 

Does anyone face any similar issues, or have any idea how to resolve this?

 

@Mark Roethof@Dr Atul G- LNG 

 

Thanks

Anand

1 ACCEPTED SOLUTION

Hi @Community Alums ,

 

Here is the approch to take :

 

1. As you only have 1 domain now you can simply set the domain as target.sys_domain = 'sys_id of domain';

 

2. By default, the domain field is going to be synced with the Company field,  Updating a Company record for a user will change their Domain.

 

Associating a Company record to a User will associate the User with the Domain that is associated to the Company automatically. This allows you to declare overrides by declaring a Managed Domain if needed, but otherwise ensures that the User has the same domain as their Company.

 

so set them accordingly...

 

I hope this helps...

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

View solution in original post

5 REPLIES 5

amaradiswamy
Kilo Sage

Hi @Community Alums 

 

Just wanted to clarify: Are you using domain separated instances and the domains you are mentioning about are domains created for data separation in ServiceNow?

 

If yes, you can update the "Domain" field on the user records to move the users to the required domain. I don't anticipate any issues as these users will be able to view all the records created in global and child domains of it. The scripts created for global domain will not get applied, so you might have to double check on the scripts to make sure there are no domain specific scripts defined

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Community Alums 

 

How you set up the domain separation?  Its like Top and child domain? or yoy referring to domain field on user tabel?

*************************************************************************************************************
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]

****************************************************************************************************************

Community Alums
Not applicable

Hi @amaradiswamy , @Dr Atul G- LNG ,

 

The domain hierarchy is like TOP -> 2 Child Domains (now we are not using one). We were using it for separating data. The implementation was done a long time ago, I was not part of it.

 

The issue is related to the domain assignment of users. Generally, ServiceNow domains are assigned based on the Company (the user domain should be set to the company domain), however, for the same company, some users are added to Domain 1 and others to the global domain.

 

Can we directly assign a domain to the user in the transform map while importing data from LDAP, is this the right approach, as we only have a single domain in use?

 

These users have imported recently with the same company, however their domains is different.

 

AnandMahajan_1-1716781126513.png

 

Yes, you can update from transform map.