web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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

I have the same question (0)
  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    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

    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.

  • Community Member Profile Picture
    on at

    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



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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans