Dynamics 365 Business Central: An error occurred when communicating with Dataverse (User does not have required privileges to access the org when it is in Admin Only mode)

Dynamics 365 Business Central

Hi, Readers.
Today I would like to share an error handling of Business Central, an error occurred when communicating with Dataverse (User does not have required privileges to access the org when it is in Admin Only mode).

Recently, a partner ran into this exact issue while setting up the Dataverse integration in Business Central. More details: Dynamics 365 Business Central Blog Series: Integrate with Microsoft Dataverse

An error occurred when communicating with Dataverse.

Detailed description: User does not have required privileges (or role membership) to access the org when it is in Admin Only mode.

In short, the root cause lies within the Power Platform environment, not Business Central itself. For the Power Platform environment, you can set a sandbox, production, or trial (subscription-based) environment in administration mode so that only users with System Administrator or System Customizer security roles are able to sign in to that environment. Administration mode is useful when you want to make operational changes and not have regular users affect your work, and not have your work affect end users (non-admins). Let’s walk through how to set it up.

  • In the navigation pane, select Manage.
  • In the Manage pane, select Environments.
  • In the Environments page, select a sandbox, production, or trial (subscription-based) environment.
  • In the Details web part, select Edit.
  • The Edit details pane appears.
  • Turn the Administration mode property to Enabled.
  • Optionally, you can set Background operations.
SettingDescription
Administration modeSelect to enable administration mode for the selected sandbox, production, or trial (subscription-based) environment. Only System Administrators or System Customizers will be able to sign in to the selected sandbox or production environment.
Background operations (optional)Select to disable all Dataverse asynchronous operations (see Asynchronous service) such as workflows and synchronization with Exchange. Emails aren’t sent and server-side synchronization for appointments, contacts, and tasks are disabled. Scheduled Power Automate cloud flows aren’t Dataverse asynchronous operations and continue to run. Note: You must enable administration mode to disable background operations.
  • Select Save.

Once the status changes from ‘Running’ to ‘Ready’, the settings will take effect.

If Administration mode is enabled, a warning will be displayed when you open this environment. Therefore, simply disabling this setting and reconfiguring the integration in Business Central should resolve the issue.

This environment is currently in administration mode, so only admins can sign in to it. You can turn off administration mode in settings

Give it a try!!!😁

END

Hope this will help.

Thanks for reading.

ZHU

コメント

Copied title and URL