How to Integrate Copilot Studio Agents with Microsoft Entra External ID
Copilot Studio Agents have made AI assistance more accessible to businesses all over the world. Nowadays, you can build an efficient AI agent and deploy it on multiple channels, for your internal teams as well as your customers. For even better security when it comes to external users, you can Integrate Copilot Studio Agents with Microsoft Entra External ID. However, when you are allowing your external users like customers and vendors to use your Copilot agent which might have access to your sensitive documents, you need to ensure security.
Here, we will take a look at the process of integrating Copilot Studio agents with Microsoft Entra External ID using Generic OAUTH 2.0. These are the steps that you should follow:
The Process for Enable External ID on your Copilot Studio Agents
Before we talk about the actual process, let us first look at the things that you will need
Things You Will Need
- A published agent on Copilot Studio.
- An external tenant on Microsoft Entra Admin Center.
You need to make sure that you have the Cloud Application Administrator role on Microsoft Entra.
STAGE 1: Get the Redirect URL for the Copilot Studio Agent
Once you have the agent activated, the first thing to do is to let your customers sign up to use the agent. For this, you will need a redirect URL. This is the location where the Microsoft identity platform redirects a user’s client and sends security tokens after authentication. Here are the things to do to get the redirect:
- Log in to your agent then go to Settings > Security > Authentication.
- Make sure that you select the ‘Require users to sign in’ option is selected.
- Copy the Redirect URL. This will be used to configure the Microsoft Entra External ID integration.

STAGE 2: Register the App on Microsoft Entra
Next, you will need to register the app on Microsoft Entra. This allows you to use Entra ID for logging in. Here are the steps that you need to follow at this stage.
- Log in to the to the Microsoft Entra Admin Center.
- Under Identity, click on Applications and then select App registrations. When you do are doing that, you need to ensure you are on the External tenant
- To create a new app registration, select the ‘New registration’ option. Select an existing tenant to use from the drop-down or select Create new to create a new external tenant.

- Next, you will need to enter a display Name for your application. This is the name your users will see when they use the agent, during sign-in.
- After that, you need to choose who can use the application. This is often called its sign-in audience. In this case, you need to select the option ‘Accounts in this organizational directory only’, under Account type.
- In the Redirect URL section, you need select ‘Web Platform’ then paste the Redirect URL copied from Stage 1. After you have done that, click Register.

- Once the app registration is done, you will be directed to the app registered. On this screen, you will see the following details:

- Next, you will need to add client credentials. You can do this by clicking ‘Add a certificate or secret’ under Client credentials. You can also select ‘Certificates & secrets’ under the ‘Manage’ option. Then click on ‘New client secret’.

- After that, you will need to add a description for your client secret and select an expiration period for the secret. Following that you need to select ‘Add’. The client secret is now added. You will need to copy secret’s value for use in the Copilot Studio agent. Apart from that, you will need to copy and save the Application (client) ID, Directory (tenant) ID and tenant name for the next step.
STAGE 3: Configure authentication settings on Copilot Studio
Now, we are approaching the final stages of the process. At this stage, we simply need to fill in the details copied from Microsoft Entra on our Copilot Studio agent.
- Access to your agent then go Settings > Security > Authentication.
- Select Authenticate Manually.
- Fill in the details that you copied from previous stage
Once you are done, you need the integration thoroughly. If any issues are detected, then you need to resolve them.