Nowadays, many companies are creating their own Copilot agents in Microsoft Copilot Studio to help employees or customers. However, when users begin using the agent, they sometimes need to log in with their own account before the agent can provide them with personal data or connect to other systems, such as SharePoint or Power Automate.
In this tutorial, we will see how to set up manual authentication in Microsoft Copilot Studio. With manual authentication, you can make sure every user signs in with their own credentials before using the Copilot.
Set up Manual Authentication in Microsoft Copilot Studio
When you create a Copilot in Microsoft Copilot Studio, you can allow users to log in using their own accounts. By default, you can choose “Authenticate with Microsoft”, but sometimes you might want more control, for example:
- You need to connect your Copilot to other apps or APIs using OAuth2.
- You want to manage your own login and permissions.
- You want the agent to get an access token for each signed-in user.

In those cases, you can use the Manual authentication option.
With manual authentication, you decide how users log in, which identity provider is used, and what permissions (scopes) are required.
Follow the below:
I think your agent is already created for this example. I am using the IT Helpdesk Agent.

- Go to Settings -> Security -> Authentication.

- Under Authentication type, choose Authenticate manually.

- From the Service provider, select the “Microsoft Entra ID V2 with client secrets“.

Then copy the redrict url we will provide when the app registration in Microsoft Entra ID.
Register an App in Microsoft Entra ID (Azure AD)
Before you set up authentication in Copilot Studio, we need to register an app in Microsoft Entra ID (previously Azure AD).
Now, follow the steps below to do this:
- Go to the Azure Portal. Select “Microsoft Entra ID“.

- Expand Manage and click on “App Registration” from the left navigation pane.

- Click on “+ New Registration“. Then, enter the following details:
- Name – Give it a name (for example, Copilot Manual Auth App).
- Who can use this application or access this API? – Select any option as per your need. Here, I am selecting for “Accounts in this organizational directory only (TSinfo Technologies only – Single tenant)”.
- Redirect URL – Select web and paste the URL below:
https://token.botframework.com/.auth/web/redirect
- Click on “Register“.

- After the app is created, we’ll be redirected to the app’s Overview page. Here, copy the Application (client) ID because we’ll need it later in Copilot Studio.

Enable ID and Access Tokens
- In the left navigation, expand Manage and click Authentication.
- Scroll to Implicit grant and hybrid flows.
- Enable both:
- ID tokens
- Access tokens
- Click Save.

Next step, we need to create a Client Secret.
Create a Client Secret
- From the left navigation, select Certificates & secrets under Manage.
- Click on + New client secret.
- Enter a description (for example, Copilot Secret) and set an expiry period.
- Click Add.

- Now, copy the Value and save it for later. You’ll need them in the next step.

Add API permissions
- Go to API permissions -> + Add a permission -> Microsoft Graph -> Delegated permissions.

- Expand OpenId permissions and turn on openid and profile. Then click Add permissions.

Add Client ID and Client Secret in Microsoft Copilot Studio
Once your app is registered and you’ve created the client secret in Microsoft Entra ID, it’s time to configure these details inside Copilot Studio.
Follow the steps below:
- Client ID: Paste the Application (client) ID you copied from Microsoft Entra ID.
- Client secret: Paste the secret value you created earlier.
- Scroll down and click Save to apply the settings.

Test the Authentication in Copilot Studio
Open your Copilot and try chatting with it. You should now see a Sign in prompt.

Click on Login will open a new tab that provides a validation code as shown below.

We need to copy and paste the code inside the Bot conversation to allow the Bot to validate.

With this setup, every user must sign in using their own Microsoft account before interacting with the Copilot.
Also, you may like some tutorials:
- Create Multi Agent in Copilot Studio
- Copy Agent Builder Agent to Copilot Studio
- Create a Custom Agent in Microsoft 365 Copilot
- SharePoint List as Knowledge in Copilot Studio
- Change Copilot Studio Agent Welcome Message
- Add Copilot Studio Knowledge Files Using Power Automate

Hey! I’m Bijay Kumar, founder of SPGuides.com and a Microsoft Business Applications MVP (Power Automate, Power Apps). I launched this site in 2020 because I truly enjoy working with SharePoint, Power Platform, and SharePoint Framework (SPFx), and wanted to share that passion through step-by-step tutorials, guides, and training videos. My mission is to help you learn these technologies so you can utilize SharePoint, enhance productivity, and potentially build business solutions along the way.