Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

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