Microsoft Dev Blogs

Integrate Copilot Studio agents with Microsoft Entra External ID to give your customers access

thumbnail

Tutorial: Integrating Copilot Studio agents with Microsoft Entra External ID

Summary:

This tutorial video guides you through integrating Copilot Studio agents with Microsoft Entra External ID using the Generic OAUTH 2.0 service provider option to allow customers secure access. The process includes creating an app registration on Microsoft Entra, configuring authentication settings on Copilot Studio, and testing the integration.

1. Get the Redirect URL for the Copilot Studio Agent:

  • Obtain the redirect URL where Microsoft will send security tokens after authentication.

2. Create an App Registration on Microsoft Entra:

  • Go to Microsoft Entra Admin Center, navigate to Identity > Applications > App registrations.
  • Create a new app registration or select an existing tenant.
  • Generate a client secret and copy the Application (client) ID, Directory (tenant) ID, and tenant name.

3. Configure Authentication Settings on Copilot Studio:

  • Fill in the details copied from Microsoft Entra on the Copilot Studio agent.
  • Use the client ID, redirect URI, and client secret obtained from the app registration.

4. Test the Integration:

  • Publish the Copilot Studio agent.
  • Go to the demo website, click Login, and complete the authentication process.
  • Enter the code validator provided in the previous step in the Copilot Studio agent to complete the integration.