Search code examples
dynamics-crm-2011dynamics-crmcrm

Cannot update systemuser.domainname in CRM


In MS Dynamic CRM, I am trying to update systemuser.domainname using web services, but it is invalid for update. How can I do it?


Solution

  • For on premise CRM system the systemuser.domainname is resolved from Active Directory, once the user is created (this is in case if it is not integrated with Office 365). If this username is not found in AD you cannot create a user in CRM. So, in order to change the domainname through code, you should firstly change change the username in Active.

    Check out the the following KB article from Microsoft:

    http://support.microsoft.com/kb/930853

    In order to change the AD username through code, you can check out the following answer,

    How to change login name of user in Active Directory

    and then try to change it in CRM through your services.