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)

Cannot Assign roles to an user

(0) ShareShare
ReportReport
Posted on by 445

Hi All,

Please help me to solve this issue

Problem :

1. First i created an user 

2. I disabled that user from crm

3. Then while adding the user again it said that already an user exists under the same name.

4. then i found in the one of the forum saying that we should delete in the Database as well so i went and deleted the user in specified Tables as well.

5. After deleting i am able to successfully create an user with the same name.

6. Now the problem is when i assign security roles to the user i am facing the problem

Below is the log file i get when i try to do it, Please help me

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=6.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #3A66E569Detail:
<OrganizationServiceFault xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/xrm/2011/Contracts">
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>System.Web.HttpUnhandledException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #3A66E569</Message>
<Timestamp>2015-01-02T06:28:02.6503122Z</Timestamp>
<InnerFault>
<ErrorCode>-2147220970</ErrorCode>
<ErrorDetails xmlns:d3p1="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<Message>System.Runtime.InteropServices.COMException: Microsoft Dynamics CRM has experienced an error. Reference number for administrators or support: #860CB6C3</Message>
<Timestamp>2015-01-02T06:28:02.6503122Z</Timestamp>
<InnerFault i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<TraceText i:nil="true" />
</OrganizationServiceFault>

Thanks

Ashwin

 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    AshwinKiran1 Profile Picture
    445 on at

    Solved :

    Goto regedit in MSCRM - Add a DWORD with "AssignRoleInAdminMode" with value "1"

    Thanks

    Ashwin

  • Verified answer
    Hosk Profile Picture
    on at

    I would not delete the user from the database, this is an unsupported change and if it goes wrong then Microsoft will only offer limited support.

    If this happens again (it seems you have solved it, if so check your answer as verified) I would activate the disabled user and assign him different security roles.

    You cannot delete users in CRM because they are added to various database tables.  The method available is activate/deactivate.

  • Suggested answer
    Mithilesh Kumar Profile Picture
    10,047 on at

    As Ben has rightly mentioned deleting Users in CRM is an unsupported change. You were able to change the Registry Key in MSCRM as it was an On-Premise deployment.

    Think of a scenario when it would have been an Online deployment where the SQL Database and CRM Server is not exposed to the users.

    In that case you are forced to use the Activate / Deactivate functionality by MSCRM environment.

    Do not make any changes directly to the SQL Database, use the SDK and API's provided by MSCRM under the Developer Resources.

    Thanks,

    Mithilesh Kumar

    If you find my post helpful, please mark my post as the suggested answer. :-)

  • Mojtaba Profile Picture
    735 on at

    Hi

    When you delete user manually in database you just delete it from some tables and it is not the whole story which Microsoft does not support it. There are other tables which should be clear of the deleted user footprint even in MSCRM_Config DB if you continue searching will be reach the answer I solved this problem once in database last year.

    If the my post helped you please mark my post as the suggested answer

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