Copilot's + Conditional Access = True
- Vlad Johansen
- Dec 6, 2024
- 2 min read
Hello everyone
In November 2024 Microsoft maked it possible to scope Conditional Access policies to Copilot for Microsoft 365 and Copilot for Security. It's a great news for every IAM admins and consultants out there. Let's take a look on how it works. It's not straight forward process, the applications can't be found in Targeted resources , so we need to create service principals using powershell first, to get them available in the application list CA.
Open powershell as administrator and type in this to connect to MS Graph with read and write all permissions.
Connect-MgGraph -Scopes "Application.ReadWrite.All"
Now run this command after you have authenticated to MS Graph
New-MgServicePrincipal -AppId fb8d773d-7ef8-4ec0-a117-179f88add510
This command will register service principal for the service Copilot for Microsoft 365
I was met with this message after running this command, so if you will get this , try to run

this command to force delete MS Graph module and overwrite it
Install-Module -Name Microsoft.Graph -Force -AllowClobber
This may take a while. You can try to reconnect to MS Graph after that and re-run the command and it should work
As you can see now, the registration is successful

To register Copilot for Security run this command
New-MgServicePrincipal -AppId bb5ffd56-39eb-458c-a53a-775ba21277da
Now, after we have registered both application, let's take a look how it looks like in CA
Go to entra.microsoft.com --> Identity --> Protection --> Conditional Access
Press on Create Policy --> Target resources --> Select resources --> Select None
Search for Enterprise and you will see registered application for Copilot for Microsoft 365
Same with Copilot for Security
We can now create and scope our CA policies to this resources. This is fantastic work from Microsoft and my opinion is that this should be done for long time ago. Definitely a game changer when it comes to secure the access to AI.
Have a wonderful weekend everyone and thanks for reading
Comments