Dynamics 365 User Connector
Connect your own Microsoft Dynamics 365 account to Abacus.AI so that ChatLLM Teams chats with RouteLLM, the Abacus AI Agent and Custom Chatbots can work with your Dynamics 365 and Dataverse data under your own identity. Every request is made with your own Microsoft token and runs with your own Dynamics 365 security roles, so the connector can only see and change the records you can already see and change in Dynamics.
The connector covers everything stored in Dataverse: Dynamics 365 Sales, Customer Service, Field Service, Marketing and Project Operations, and Power Apps tables, including custom tables.
Once connected, the Dynamics 365 Tool can, for example:
- List the Dynamics 365 environments you can reach, such as dev, test and production
- Browse the tables and columns in an environment
- Query accounts, contacts, leads, opportunities, cases and any other table, with filters, sorting, related records and FetchXML
- Create records, including records linked to existing ones
- Update records, or create them when they do not exist yet (upsert)
- Delete records
- Run Dataverse actions, such as qualifying a lead or closing an opportunity
Dynamics 365 Business Central and Dynamics 365 Finance and Operations (Finance, Supply Chain Management, Commerce) do not store their data in Dataverse and are not supported by this connector.
Prerequisitesβ
- Access to ChatLLM Teams
- A Microsoft work or school account with access to at least one Dynamics 365 or Power Apps (Dataverse) environment
- To pin a tenant or environment, use a non-commercial Microsoft cloud, or use your own Entra app: administrative access in Abacus.AI to create connectors
Scopes and permissionsβ
By default the connector uses the Abacus.AI multi-tenant Microsoft Entra application and requests only delegated permissions, which you review on Microsoft's consent screen when you connect:
| Permission | Purpose |
|---|---|
Dynamics CRM user_impersonation | Access Dynamics 365 and Dataverse as the signed-in user, in every environment you can reach |
openid, profile, email | Sign you in and show which account is connected |
offline_access | Keep the connection active without signing in again |
Delegated permissions act on behalf of the signed-in user, so the connector can never see more than your own Dynamics 365 account can, and it never uses application (app-only) permissions. What you can read, create, update or delete in each table is decided by your Dynamics 365 security roles, exactly as in the Dynamics 365 app itself.
Dynamics CRM user_impersonation does not require tenant admin consent in Microsoft Entra ID, so in most tenants each user can connect without an Entra admin. If your tenant restricts user consent for third-party apps, Microsoft shows "Need admin approval" instead. See Troubleshooting.
To revoke access later, remove Dynamics 365 from Profile β User Connectors. You can also revoke the Abacus.AI app from your Microsoft account settings, or an Entra admin can remove it for the tenant.
Environmentsβ
One sign-in covers every environment you can access. When you connect, Abacus.AI lists your environments through the Dataverse Global Discovery Service and obtains a separate token for each one.
- Environments are listed again each time the connection's token is refreshed, so an environment you gain or lose access to appears or disappears without reconnecting.
- Disabled environments are not offered.
- Up to 25 environments are kept per connection. If you can reach more, ask your administrator to pin the environment you need.
- If Microsoft refuses access to one environment (for example because it needs extra consent), that environment is listed as unavailable and the others keep working.
When you can reach more than one environment, the tool will not guess which one to use: name it in your request ("in Contoso Prod, listβ¦") or the agent asks you which one you mean. Every result says which environment it came from. This keeps a change meant for a test environment from landing in production.
Configure the connector for your organization (config connector)β
Users can connect Dynamics 365 without any setup by an administrator. An organization administrator can optionally create a Dynamics 365 config connector to control how every user-level Dynamics 365 connection in the organization signs in. Use it to:
- Pin a tenant, so users sign in to your Microsoft Entra tenant only.
- Pin an environment, so users only ever reach one Dynamics 365 environment.
- Choose a Microsoft cloud other than the commercial one (US Government or China).
- Use your own Entra app instead of the Abacus.AI app (see Use your own Entra app).
To create it:
- In the Abacus.AI interface, click your profile picture in the top right corner and select Manage Connectors (or open the Connected Services Dashboard).
- Click Add New Connector and choose Dynamics 365 from the list.
- Fill in the fields you need. All of them are optional:
| Field | What to enter |
|---|---|
| Connector Name | A name to identify the configuration. "(Config Only)" is appended automatically. |
| Microsoft Cloud | The Microsoft cloud your Dynamics 365 tenant lives in. Defaults to Commercial. See Microsoft clouds. |
| Tenant | Your Microsoft Entra tenant ID (a GUID) or domain, for example contoso.onmicrosoft.com, so users sign in to that tenant. Leave blank to let users sign in with any work account. Required when your own Entra app is single-tenant. |
| Environment URL | One environment to limit connections to, for example https://contoso.crm.dynamics.com. It must be in the selected cloud's Dynamics domain. Leave blank to give users every environment they can access. |
| Client ID | The Application (client) ID of your own Entra app. Leave blank to use the Abacus.AI app. |
| Client Secret | The client secret of your own Entra app. Required with a Client ID. |
- Click Create.
The Dynamics 365 form always creates a configuration for user connectors. It never signs in to Dynamics 365 or creates an organization-level Dynamics 365 connection, so there is no Config Only toggle to set. An organization has one Dynamics 365 config connector; creating it again updates the existing one.
Each user's connection keeps the settings, including your app's client ID and secret, that were in effect when that user connected. After you create or change the config connector, or rotate your app's client secret, users who connected earlier must remove Dynamics 365 and connect it again from Profile β User Connectors.
Use your own Entra appβ
By default the connector signs users in with the Abacus.AI application. To use your organization's own Microsoft Entra app registration instead, for example so that only an app your organization owns and controls has access to Dynamics 365:
- In the Microsoft Entra admin center, go to Identity β Applications β App registrations and click New registration.
- Name: any name, for example
Abacus.AI Dynamics 365. - Supported account types: Accounts in this organizational directory only (single tenant) is recommended. If you choose it, also enter your tenant in the config connector's Tenant field.
- Redirect URI: platform Web, URI
https://abacus.ai/oauth/callback.
- Name: any name, for example
- Click Register, and copy the Application (client) ID from the app's Overview page.
- Open API permissions β Add a permission β Dynamics CRM (under Microsoft APIs), choose Delegated permissions, select user_impersonation and click Add permissions. The
openid,profile,emailandoffline_accesspermissions are requested at sign-in and do not need to be added here. - Optional: click Grant admin consent for your tenant so your users are not each asked to consent. This is required if your tenant does not allow users to consent to apps.
- Open Certificates & secrets β Client secrets β New client secret, choose an expiry and click Add. Copy the secret's Value right away (not the Secret ID); it is shown only once.
- Create or update the Dynamics 365 config connector and enter the Client ID, Client Secret and, for a single-tenant app, the Tenant.
Users who connect from then on sign in through your app. Users who connected earlier must reconnect.
When your app's client secret expires, Microsoft stops refreshing every connection made with it and users see sign-in errors. Before it expires, create a new secret in Entra, enter it in the config connector, and ask users to reconnect Dynamics 365.
Microsoft cloudsβ
| Microsoft Cloud | Environment domain | Abacus.AI app available |
|---|---|---|
| Commercial (default) | *.crm*.dynamics.com | Yes |
| US Government (GCC) | *.crm9.dynamics.com | Yes |
| US Government (GCC High) | *.crm.microsoftdynamics.us | No, use your own Entra app |
| US Government (DoD) | *.crm.appsplatform.us | No, use your own Entra app |
| China (21Vianet) | *.crm.dynamics.cn | No, use your own Entra app |
For GCC High, DoD and China, register the Entra app in that cloud's own Entra admin center and enter its client ID and secret in the config connector. Without them the config connector cannot be saved.
Use Dynamics 365 in ChatLLMβ
Step 1 β Connect Dynamics 365β
In ChatLLM Teams, click the Connectors link on the home page, or click your profile in the top right and navigate to Profile β User Connectors.

- Scroll the connector list and click Dynamics 365.
- A browser pop-up opens asking you to sign in to Dynamics 365 and authorize Abacus.AI.
- Review the requested permissions and click Allow (or Authorize).
- After authorization completes, Dynamics 365 appears under your connected services and is ready to use.
User connectors are configured once per user and run under your own identity. After the connector is set up, every chatbot and the Abacus AI Agent in your workspace can query data from it.
Step 2 β Chat with RouteLLMβ
- Open a new chat in ChatLLM Teams.
- From the model selector, choose RouteLLM (
route-llm). RouteLLM automatically routes each request to the most suitable underlying model, and is available for unlimited use to ChatLLM subscribers.

- Ask a question that references Dynamics 365, for example "List my open opportunities in Dynamics 365 closing this quarter, with their estimated revenue". RouteLLM invokes the Dynamics 365 tool, fetches the data under your identity, and responds in chat.
The first time you query a newly connected service in a chat, you may be prompted to authorize the connector. Complete the sign-in once and the request continues automatically; subsequent requests reuse the connection.
You don't need to train a Custom Chatbot to use Dynamics 365 with RouteLLM. Once the connector is configured in the User Connectors panel, it is immediately available across your workspace chats and to the Abacus AI Agent.
A few more things to try:
- "Which Dynamics 365 environments can I access?"
- "In Contoso Prod, show the 10 most recent high-priority cases and who owns them."
- "Create a contact Ada Lovelace at the account Fabrikam in Dynamics 365."
- "Update the estimated close date of the Fabrikam renewal opportunity to March 31."
- "What columns does the custom table Project Request have in Dynamics 365?"
When you can reach more than one environment, name the one you mean in your request.
If you want a dedicated bot with its own instructions and a restricted set of tools, train a Custom Chatbot in the Developer Platform and, under Advanced Options β Tool Use, select Dynamics_365_Tool. If your organization has a Dynamics 365 config connector, also pick it under **Config Connectors**. End users of that chatbot are prompted to sign in to Dynamics 365 once, and the bot then acts under each user's own identity. See the Custom Chatbots guide for the full training and deployment walkthrough.
How Dynamics 365 data is accessedβ
- Live, on demand. Dynamics 365 is not a dataset or indexing connector. Records are not synced, crawled or indexed; they are read from the Dataverse Web API only when a request needs it.
- Your permissions only. Each connection belongs to one user and uses only that user's delegated token, so it cannot act as another user or reach anything outside that user's own Dynamics 365 security roles.
- Your environments only. Your token is only ever sent over HTTPS to your own Dynamics 365 environments' Web API (
/api/data/v9.2). The tool refuses any other host, path or redirect. - Bounded reads. Queries return 100 records by default and at most 5,000 per request. Larger results come back with a link the agent uses to fetch the next page.
- Writes are not repeated. When Dataverse throttles requests, the tool waits and retries. A create, update or delete is never replayed after a network error, so a record is not created twice. Updates change only an existing record unless an upsert is asked for.
- Content goes to your chat's model. Records the agent reads are passed to the LLM selected for that conversation and stay in the conversation, like any other tool result.
Limitationsβ
- Dataverse only. Business Central and Finance and Operations apps are not supported.
- No per-table scoping. You cannot limit the connector to specific tables. Access is governed by each user's Dynamics 365 security roles; pin an environment in the config connector to limit which environment is reachable.
- Up to 25 environments per connection. Disabled environments are skipped.
- Delegated access only. There is no app-only (service principal / application user) mode; every connection acts as one signed-in user.
- Throttling. Dataverse service protection limits apply per user. Very large reads or bulk changes may be slowed down.
Troubleshootingβ
- The authorization pop-up does not appear: allow pop-ups for the Abacus.AI site in your browser and click Dynamics 365 in the User Connectors panel again.
- "Need admin approval" when connecting: your tenant does not allow users to consent to third-party apps. Ask a Microsoft Entra admin to connect Dynamics 365 once and tick Consent on behalf of your organization, as described in Microsoft Entra Tenant Consent, or to approve the request in the Entra admin center. With your own Entra app, the admin can instead click Grant admin consent on the app's API permissions page.
- "This Microsoft account has no Dynamics 365 environments it can access": the account you signed in with has no Dynamics 365 or Power Apps environment, or the environment pinned in the config connector is wrong. Check that you can open the environment in your browser with the same account, and that you signed in to the right tenant.
- "Microsoft refused access to every Dynamics 365 environment", or one environment is listed as unavailable: Microsoft did not allow a token for that environment, usually because consent is missing. Ask your Entra admin to grant consent, then reconnect Dynamics 365.
- "Dynamics 365 in the β¦ cloud needs your own Microsoft Entra app": the config connector selects GCC High, DoD or China. Enter your own app's Client ID and Client Secret in the config connector.
- "Microsoft did not return a refresh token": the
offline_accesspermission was not granted. Remove Dynamics 365 and connect it again, accepting all requested permissions. - "Failed to refresh the Dynamics 365 connection" or other sign-in errors: the connection expired, was revoked, or your own Entra app's client secret expired or changed. Update the secret in the config connector if needed, then remove Dynamics 365 from Profile β User Connectors and connect it again.
- Error
AADSTS50011(redirect URI mismatch) with your own Entra app: addhttps://abacus.ai/oauth/callbackas a Web redirect URI on the app registration. - Error
AADSTS50194(not configured as a multi-tenant application) with your own Entra app: the app is single-tenant but the config connector has no Tenant. Enter your tenant ID or domain. - Error
AADSTS700016(application not found in the directory) with your own Entra app: the Client ID or Tenant in the config connector is wrong, or the app was registered in a different tenant or Microsoft cloud. - The agent asks which environment to use: you can reach several environments. Name one (for example "in Contoso Prod") in your request.
403 Forbidden: your Dynamics 365 security role does not allow that operation on that table. Ask your Dynamics 365 administrator to adjust your role.404/ "not found": the table or record does not exist in that environment, or you are looking in a different environment. Ask the agent to list the tables or check the environment.- "Dynamics 365 is throttling requests": Dataverse service protection limits were hit. Wait a minute and try again, or narrow the request.