CRMJettyBack to crmjetty.com
Menu

Dynamics 365

Introduction

Hosting and deployment

Account and billing

Connect your CRM

Payments

Widgets

Admin and dashboards

Portal users

Email and notifications

CRM connection and sync

Forms

Lists

Pages

Roles and permissions

Branding and navigation

Workflows

Support and knowledge base

Languages

Login and security

Documents and e-signatures

Integrations and AI

More

Docs / Dynamics 365

Dynamics 365 Customer Portalv6.3.0

Guides / Connect your CRM

How to Register an Entra ID App for Dynamics 365 OAuth

4 min readUpdated
Short answerIn the Azure portal, register a new app in Microsoft Entra ID, copy its Application (client) ID, add the Dynamics CRM user_impersonation permission and grant admin consent, then create a client secret and copy its value. Finally, add the app as an application user in the Power Platform admin center.

The portal connects to Dynamics 365 Online with OAuth. For that, you register an app in Microsoft Entra ID (formerly Azure Active Directory), then enter the app’s ID and client secret in the portal admin. OAuth lets the portal access CRM data without storing a CRM user’s sign-in credentials.

Before you start

Register the app

  1. In a new browser tab, go to https://portal.azure.com/.
  2. In the search box, search for Microsoft Entra ID and open it.
  3. Select App registrations in the left menu.
  4. Select New registration.
  5. Enter a name for the app.
  6. Select Register.
  7. On the app details page, copy the Application (client) ID. You enter it as the App ID in the portal.

Add Dynamics 365 permissions

  1. In the left menu, select API permissions.
  2. Select Add a permission.
  3. In the side panel, select Dynamics CRM.
  4. Select the user_impersonation checkbox.
  5. Select Add permissions.

Add SharePoint permissions

Add these if you use SharePoint for portal documents.

  1. On API permissions, select Add a permission again.
  2. Select SharePoint.
  3. Select Delegated permissions.
  4. Expand AllSites and select AllSites.FullControl.
  5. Select Add permissions.
  1. On API permissions, select Grant admin consent for your organization.
  2. Confirm when prompted.

Allow public client flows

  1. In the left menu, select Authentication.
  2. Under Advanced settings, set Allow public client flows to Yes.
  3. Select Save.

Note: Public client flows let the app use sign-in flows that do not need a client secret. If your security policy does not allow this, ask CRMJetty support whether your portal version needs it, and leave it off if it does not.

Create a client secret

  1. In the left menu, select Certificates & secrets.
  2. Select New client secret.
  3. Enter a description.
  4. Select when the secret expires.
  5. Select Add.
  6. Copy the secret’s Value right away. You enter it as the Client Secret in the portal.

Important: The secret value is shown only once. If you leave the page without copying it, create a new secret.

Important: When the client secret expires, the portal can no longer connect to Dynamics 365. Create a new secret before the expiry date and update it in the portal.

Add the app as an application user

  1. Sign in to the Power Platform admin center.
  2. Select your Dynamics 365 environment, then select Settings.
  3. Under Users + permissions, select Application users.
  4. Select New app user.
  5. In Create a new app user, select Add an app and choose the app you registered.
  6. Select the Business unit for the app user.
  7. Assign the Security roles the portal needs.
  8. Select Create.

Tip: Give the application user only the security roles the portal needs to read and write the entities you enable.

Enter the app details in the portal

In the portal admin, go to Settings → Portal Settings → CRM Authentication and enter:

Portal field Value from Entra ID
App ID Application (client) ID
Client Secret The client secret Value

For the full connection steps, see How to Connect Dynamics 365 to CRMJetty Portal.

Troubleshooting

The connection fails after it worked before: the client secret may have expired. Create a new secret in Certificates & secrets, then update Client Secret in the portal.

You can’t find the secret value: the value is shown only when you create it. Create a new client secret and copy the value.

Did this solve it?No, contact support