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.
*This post is locked for comments
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
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.
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.
Mohamed Amine Mahmoudi
83
Super User 2025 Season 1
Community Member
52
Victor Onyebuchi
6