Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Wrong domain name for a user

(0) ShareShare
ReportReport
Posted on by

Hi

I created a user in dynamics CRM 2016, but I typed its domain name wrongly. I tried to change it, but it does not allow me. I even tried to change the current wrong user email to other thing but it did not help me.

Hi

Actually, I imported my crm from another system to the new one. In the first CRM configs, it has a domain name called A. I mapped users from A to Domain B when I imported the CRM database but it seems that some of them kept their old name, so in the new CRM I have a user with "A\user1" username. I tried to disable this user and add new user with correct CRM but I still get the following error:

"You are attempting to create a user with a domain logon that is already used by another user. Select another domain logon and try again."

The interesting point here is that the user exist in my Organization database, but when I try to find it MSCRM_Config using the following query, it results in no record :

SET @userId = (SELECT SystemUserId FROM dbo.SystemUserBase WHERE DomainName = @username)

SET @orgid = (SELECT OrganizationId FROM dbo.SystemUserBase WHERE systemuserid = @userid)

select * FROM mscrm_config..SystemUserOrganizations WHERE CrmUserId = @userid AND OrganizationId = @orgid

select * FROM mscrm_config..SystemUserAuthentication WHERE authinfo = @authinfo

select * FROM mscrm_config..SystemUser WHERE id = @MSCRMUserID

You are attempting to create a user with a domain logon that is already used by another user. Select another domain logon and try again.

wrong_2D00_iusername.JPG

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: Wrong domain name for a user

    Hi

    Actually, I imported my crm from another system to the new one. In the first CRM configs, it has a domain name called A. I mapped users from A to Domain B when I imported the CRM database but it seems that some of them kept their old name, so in the new CRM I have a user with "A\user1" username. I tried to disable this user and add new user with correct CRM but I still get the following error:

    "You are attempting to create a user with a domain logon that is already used by another user. Select another domain logon and try again."

    The interesting point here is that the user exist in my Organization database, but when I try to find it MSCRM_Config using the following query, it results in no record :

    SET @userId = (SELECT SystemUserId  FROM dbo.SystemUserBase WHERE DomainName = @username)
    
    SET @orgid = (SELECT OrganizationId FROM dbo.SystemUserBase WHERE systemuserid = @userid)
    
    select * FROM mscrm_config..SystemUserOrganizations WHERE CrmUserId = @userid AND OrganizationId = @orgid
    
    select * FROM mscrm_config..SystemUserAuthentication WHERE authinfo = @authinfo
    
    select * FROM mscrm_config..SystemUser WHERE id = @MSCRMUserID



  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Wrong domain name for a user

    Hi,

    What error you are getting?

    Make sure the username you are providing is available in AD.

    you can also create new user with what username  you want and disable the particular wrong user.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at
    RE: Wrong domain name for a user

    Hi,

    What error you are getting?

    Make sure the username you are providing is available in AD.

    you can also create new user with what username  you want and disable the particular wrong user.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
Victor Onyebuchi Profile Picture

Victor Onyebuchi 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans