Now, you must have created your own Copilot to be deployed for the Customer Service Hub. If not, here’s the link to Part 1 of this blog – Create your first custom Copilot for Customer Service Hub – Part 1
Configure User Authentication with Microsoft Entra ID
Here’s how you can configure the User Authentication with Microsoft’s Entra ID for your Copilot to be authenticated with –
- Go to the Azure Portal [https://portal.azure.com/], then given the appropriate permissions your might have, you should be able to create an App Registration

- Now, create on New Registration –

- Now, give it a suitable name so that you can identify that the purpose of this App Registration is for Copilot. Select multi-tenant, leave Redirect URI blank and click on Register.

- Once ready, go to Authentication and then click to add Platform.

- In the platform selection, click on Web.

- Now, enter the URIs – First, enter the first URI, make sure to select Access tokens and ID tokens in Implicit grant and hybrid flows section and then click Configure.
https://token.botframework.com/.auth/web/redirect
https://europe.token.botframework.com/.auth/web/redirect
- Then, go ahead and add the Second URI from the main screen itself. Then, click Save and refresh the page once.

- Now that both the URIs are added, click on the configuration link to consider both the links for configuration.

- Now, you’ll be taken to this pane where you can click

- Now, both the URIs will appear here.

- Next, generate Client ID and Client Secret as you’ll need these details too –

Set Copilot Authentication to use Custom Authentication
Going back to the Copilot itself, set the Authentication you just created in the Azure Portal –
- Go to Settings on the Copilot to use the Custom Authentication.

- Go to Security section and then select Authentication.

- Select Authenticate manually and then enter the details as shown below. Enter the Client ID and Secret which you must’ve saved before.

- Next, come back to Copilot Settings and in Security, go to Settings and then look for Web channel security.

- Once you open it, you’ll find that the Secured Access is disabled. Go ahead and enable it.
It takes up to 2 hours for it to take effect. Till then, old settings apply.
- Finally, in Channels, select Customer Service Hub so that you can connect to the Customer Service Hub.

- On the right hand side pane which opens up, you’ll see that this is not connected. Click the Connect button.

- It connects to Customer Service Omnichannel in a few moments.

Part 1: Create your first custom Copilot for Customer Service Hub – Part 1
Hope this was useful!
Here are some Power Automate posts you want to check out –
- Select the item based on a key value using Filter Array in Power Automate
- Select values from an array using Select action in a Power Automate Flow
- Blocking Attachment Extensions in Dynamics 365 CRM
- Upgrade Dataverse for Teams Environment to Dataverse Environment
- Showing Sandbox or Non Production Apps in Power App mobile app
- Create a Power Apps Per User Plan Trial | Dataverse environment
- Install On-Premise Gateway from Power Automate or Power Apps | Power Platform
- Co-presence in Power Automate | Multiple users working on a Flow
- Search Rows (preview) Action in Dataverse connector in a Flow | Power Automate
- Suppress Workflow Header Information while sending back HTTP Response in a Flow | Power Automate
- Call a Flow from Canvas Power App and get back response | Power Platform
- FetchXML Aggregation in a Flow using CDS (Current Environment) connector | Power Automate
- Parsing Outputs of a List Rows action using Parse JSON in a Flow | Common Data Service (CE) connector
- Asynchronous HTTP Response from a Flow | Power Automate
- Validate JSON Schema for HTTP Request trigger in a Flow and send Response | Power Automate
- Converting JSON to XML and XML to JSON in a Flow | Power Automate
Thank you!