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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

You must map your Active Directory user account to at least one enabled Microsoft Dynamics CRM User who has the System Administrator security role before the organization can be imported.

(0) ShareShare
ReportReport
Posted on by 5

We restored Production database on to our lower environment and trying t o import the Org on to the restored database. We are getting this error message although we are selecting teh user who is a system admin. 

What are we doing wrong?

Any help is highly appreciated...

Thanks a lot!!!

I have the same question (0)
  • Suggested answer
    Mohamed Sanuj Basheer Profile Picture
    540 on at

    Dear Partner,

    Check current logged in user was disabled in the crm database.
    “System Administrator” rights might be missing

    Get the userid of the administration-user of the environment:

    SELECT TOP (1000) [SystemUserId]
    FROM [ORG].[dbo].[SystemUserBase]
    where DomainName = 'domain\username’;

    SELECT TOP (1000) [SystemUserId]
    FROM [ORG].[dbo].[SystemUserBase]
    where DomainName = 'domain\username’;

    With the id of the user, enabled the user

    update SystemUser
    set IsDisabled = 0
    where SystemUserId ='GUID'

    update SystemUser
    set IsDisabled = 0
    where SystemUserId ='GUID'

    The next step was to add the “system administrator”-Role to the user, find the id of the role:

    select RoleId from Role r
    left join BusinessUnit b on r.BusinessUnitId = b.BusinessUnitId
    where r.name ='System Administrator' and b.ParentBusinessUnitId is null

    select RoleId from Role r
    left join BusinessUnit b on r.BusinessUnitId = b.BusinessUnitId
    where r.name ='System Administrator' and b.ParentBusinessUnitId is null

    And at the end, I added the role to the user

    INSERT INTO [dbo].[SystemUserRoles]
    ([SystemUserId], [RoleId])
    VALUES
    ('GUID', 'GUID')

    INSERT INTO [dbo].[SystemUserRoles]
    ([SystemUserId], [RoleId])
    VALUES
    ('GUID', 'GUID')

    Regards,

    Mohamed Sanuj Basheer

  • Org Import Profile Picture
    5 on at

    Hello Mohamed Sanuj Basheer,

    Thank you for spending time and explaining this to me. I appreciate it.

    But unfortunately , I have already verified all the above suggestions by you.

    The user I am trying map is a System Admin and I verified that using those queries mentioned already . It just does not let me go anywhere from here and I am dead in the waters.

    Thanks

    Nag

  • Suggested answer
    muhammad.arshad Profile Picture
    45 on at
    This problem comes when you are trying to import an organization from a Dynamics 365 CRM database from one environment to another where you don't have System Administrator user part of new environment.

    Please map the System Administrator USER with new DOMAIN ID, it will fix the issue.

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 > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 83 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans