Signing in to D365

DynBrowser signs in with the official Microsoft sign-in (Microsoft Entra ID, OAuth 2.0 with PKCE) and reads D365 on the user's behalf, with that user's own rights. DynBrowser stores no Microsoft password and no client secret. What it remembers is the sign-in itself (tokens), encrypted for the Windows user.

You need three details:

Detail What
Tenant ID The ID of your Microsoft Entra tenant (a GUID)
Client ID The Application (client) ID of the app registration below
D365 environment URL The address of your environment, e.g. https://yourcompany.operations.dynamics.com

1. Create an app registration

In the Microsoft Entra admin center, under App registrations → New registration:

  1. Give the registration a name, e.g. DynBrowser.
  2. Choose the platform Mobile and desktop applications and add the redirect URI http://localhost (exactly like that).
  3. Under API permissions, add the delegated permission for Dynamics ERP, and grant admin consent for your organisation if needed.
  4. Write down the Application (client) ID and the Directory (tenant) ID.

When signing in, DynBrowser requests the permissions granted to the registration for your D365 environment. No client secret or certificate is needed: DynBrowser is a public client.

2. Hand over the details

This way every DynBrowser in your organisation gets the sign-in details by itself, a new installation too (see First start).

  1. In the customer portal, go to Company settings → Microsoft sign-in and choose Add a new link…. Fill in the Tenant ID, the app registration ID (Client ID) and the URL of your D365 environment, and click Add as candidate.
  2. Test the link in DynBrowser: Browser Settings → D365 authentication → Test Microsoft link. Sign in there with your own administrator account. DynBrowser checks that D365 answers and reports only the result; your own sign-in in DynBrowser does not change.
  3. In the portal, choose Use for DynBrowser on the link. Every installation picks it up on its next start.

An administrator of your organisation can do this. For every change to the link the portal asks for your password and your two-step verification; switch that on first under My account. Another D365 environment, such as a test environment, is requested under Company code & environments.

Other ways

  • In advance, in a file: in the D365Auth block of publisher-defaults.json, or in the setup wizard's D365 environments panel. See Installation.
  • Through a shared folder: when a shared folder is set, the sign-in details are stored there and every workstation reads the same ones.
  • On the workstation itself: in Browser Settings → D365 authentication: Tenant ID, Client ID and the D365 environment URL. You can list several environments (production, test).

If your organisation has an active Microsoft sign-in in the portal, it wins over these. Locally the details are kept in %LocalAppData%\ERPBrowser\auth.json.

3. Signing in

The user clicks Sign in to D365. Microsoft's sign-in page opens in Windows' default browser. After that DynBrowser remembers the sign-in (encrypted for that Windows user) and renews it by itself.

When the sign-in details change (in the portal or in publisher-defaults.json), users have to sign in once more.

What DynBrowser does in D365

  • DynBrowser reads D365 through the standard OData interface (/data/…), with the rights of the signed-in user. Which D365 security roles are needed depends on the pages someone uses: the same roles as for that data in D365 itself.
  • Writing to D365 is off by default. DynBrowser only writes to D365 when this has been agreed separately with your organisation, and then only on environments designated for it.
  • What users keep in DynBrowser itself (notes, templates, price lists) does not end up in D365.

Requiring verified sign-in

Your organisation can require that DynBrowser only works after a sign-in Microsoft has confirmed for your own tenant. Send your Tenant ID and Client ID to DynSolutionZ; we switch the check on. See Licences and users.

Message: "D365 sign-in is not configured"

This message means the Tenant ID, Client ID or environment URL is missing on that workstation. Give the workstation the company code (see First start), or fill the details in as described above.