What Oleria discovers
- Users and their profiles, including their authentication methods.
- Groups and group membership.
- Applications registered in your tenant.
- Directory roles and role assignments.
- Policies - conditional access policies, and entitlement management role assignments.
- Non-human identities - service principals, agent identities, and agent users, with their credentials and permission grants.
- Identity risk events, audit log activity, and sign-in logs for users, service principals, and AI agents.
- SharePoint and OneDrive sites and the items in them, when you connect M365 SharePoint.
- Agents - when agent discovery is enabled for your workspace, the Agents inventory lists the agents in Microsoft Entra ID and in your Microsoft Agent 365 registry, including Copilot Studio agents. See AI agents.
Prerequisites
- A Microsoft Entra ID account with the Global Administrator or Privileged Role Administrator role, to grant admin consent for the application permissions below.
- Admin access on the Oleria platform to add a new integration.
Integration approaches
Choose one of three ways to connect:- Connect with Microsoft OAuth - automated configuration. Oleria creates the app and requests consent for you.
- Connect with a client secret - manual configuration with an app registration and client secret.
- Connect with a client certificate - manual configuration with an app registration and certificate, for security policies that require certificate-based authentication.
Connect with Microsoft OAuth
Open the integration
- Select Microsoft Entra ID to integrate Entra ID, or
-
Select SharePoint & OneDrive to integrate Entra ID, SharePoint, and OneDrive.


Choose permission scope

Select your Microsoft account
Complete the initial consent form

Complete the application consent form
-
Standard read-only permissions for Entra ID integration (without optional remediations)

-
Standard read-only permissions for SharePoint and OneDrive integration (without optional remediation)

-
Permissions for Entra ID integration with optional remediation capabilities (includes some write permissions)

-
Permissions for SharePoint and OneDrive integration with optional remediation capabilities (includes some write permissions)

Connect with a client secret
Create an app registration in Entra ID

Configure the registration

Open API permissions

Add Microsoft Graph permissions

- Standard read-only permissions for Entra ID integration (without optional remediations)
CopilotPackages.Read.All is used only for AI agents, so you can leave it out of your own app registration if agent discovery isn’t enabled for your workspace. It lets Oleria read your tenant’s Microsoft Agent 365 registry, which includes your Copilot Studio agents. Reading the registry also needs a Microsoft Agent 365 license in your tenant. Where agent discovery is enabled, grant the permission even if your tenant has no license yet: Oleria then reads the registry as soon as the tenant is licensed, with no further consent. Without the permission or the license, Oleria discovers AI agents from Microsoft Entra ID only: agents that only the registry lists are missing, and the others appear without their configuration. See AI agents.MailboxSettings.Read lets Oleria recognize shared, room, and equipment mailboxes, and list them as non-human identities instead of users. Oleria does this only where mailbox classification is enabled for your workspace. Without the permission, these mailboxes stay listed as users.- Standard read-only permissions for SharePoint and OneDrive integration (without optional remediation)
CopilotPackages.Read.All is used only for AI agents, so you can leave it out of your own app registration if agent discovery isn’t enabled for your workspace. See the note after the first list.- Permissions for Entra ID integration with optional remediation capabilities (includes some write permissions)
AgentIdentity.EnableDisable.All is used only by Disable agent and by Disable a non-human identity on an agent identity, and CopilotPackages.ReadWrite.All only by Disable agent, so you can leave them out of your own app registration if you don’t plan to use those actions. CopilotPackages.Read.All and MailboxSettings.Read are used as described after the first list. See AI agents.Each remediation action checks for its own permission before it runs. Every action also needs Application.Read.All (or Application.ReadWrite.All, Directory.Read.All, or Directory.ReadWrite.All), which the read-only permissions above already include. Grant the permissions for the actions you plan to use:MailboxSettings.Read after the first list.Disable agent, and Disable a non-human identity on an agent identity or an agent user, are being rolled out. Disable agent is available only where agent discovery is enabled, and Oleria offers it only on an integration that holds every permission in its row. If you plan to use these actions with your own app registration, add their permissions when you set it up, so you don’t have to change the setup when they arrive. See Permissions for disabling AI agents.- Permissions for SharePoint and OneDrive integration with optional remediation capabilities (includes some write permissions)
AgentIdentity.EnableDisable.All, Application.ReadWrite.All, CopilotPackages.ReadWrite.All, and User.RevokeSessions.All are in this list for Disable agent, and CopilotPackages.Read.All is in it for agent discovery. Application.ReadWrite.All and User.RevokeSessions.All also let Oleria disable a non-human identity and revoke a user’s sign-in sessions on the Microsoft Entra ID instance that this integration creates. You can leave any of these five permissions out of your own app registration if you don’t plan to use what it enables. See AI agents.The SharePoint permissions in this list let Oleria take the SharePoint actions in SharePoint and OneDrive. The actions that remove access use a different permission depending on how that access was granted:Grant admin consent

Confirm admin consent

Create a client secret

Copy the client secret value

Copy the client ID and tenant ID

Open the integration in Oleria

Authenticate with a client secret

Connect with a client certificate
Client certificate authentication uses a certificate uploaded to your Oleria app registration in Entra ID and a base64-encoded private key stored by Oleria. Use this method when your security policy requires certificate-based service principal authentication instead of a client secret.Prepare your certificate files
certificate.pem- the public certificate in PEM formatprivate_key.txt- the matching unencrypted private key in PEM formatcertificate_chain.txt- the intermediate certificate chain in PEM format
New-SelfSignedCertificate on Windows) and export it in the formats above.private_key.txt is passphrase-protected, decrypt it to a new file with openssl rsa -in private_key.txt -out private_key_unencrypted.txt (or the equivalent for your key type). Keep the encrypted original, and use private_key_unencrypted.txt wherever the commands below reference private_key.txt.Generate the base64-encoded private key
- macOS or Linux
- Windows (PowerShell)
base64_generate_cert.pem is the value you will paste into Oleria in the final step.Upload the certificate to Entra ID
certificate.pem.
Open the integration in Oleria
- For a new integration, select Microsoft Entra ID or SharePoint & OneDrive to open the side panel.
- To migrate an existing integration from client secret to client certificate, select Connected, then select the edit icon on your Entra ID integration to open the side panel.
Authenticate with the client certificate

Clean up generated files
generated_cert.pem and base64_generate_cert.pem both contain the unencrypted private key inline, as does private_key_unencrypted.txt if you decrypted a passphrase-protected key. Delete them from the working directory now that the integration is connected. Your original certificate.pem, certificate_chain.txt, and private_key.txt files are unchanged and can stay in your existing key store.- macOS or Linux
- Windows (PowerShell)
history -c on Bash or Zsh, Clear-History on PowerShell.How Oleria handles the private key
The Private Key field in the integration form is masked while you enter it. Oleria receives the value over TLS and stores it encrypted at rest. Only the Oleria service that authenticates to Entra ID can read it, and Oleria doesn’t write the private key to logs.Verify the integration
Whichever approach you used, confirm the Microsoft Entra ID instance, and the Microsoft SharePoint instance if you connected SharePoint & OneDrive, appear on the Connected tab of your Oleria Integrations page with a status of Healthy. After the first sync completes, you can review the discovered users, groups, applications, directory roles, and SharePoint sites in your Oleria workspace.
AI agents
When agent discovery is enabled for your workspace, Oleria discovers the AI agents in your Microsoft tenant and shows them in the Agents inventory. To enable agent discovery, contact support@oleria.com.What Oleria discovers about agents
Oleria reports three types of agent:- Agent Identity - an agent that has a Microsoft Entra Agent ID identity.
- Service Principal - a service principal that Microsoft Entra ID lists as an agent. A Copilot Studio agent created before Agent ID appears this way.
- Copilot Package - an agent that only your Microsoft Agent 365 registry lists, with no identity of its own in Microsoft Entra ID.
Permissions for agent discovery
Agent discovery uses the read permissions listed in Connect with a client secret. Two of its reads need more than the permission:CopilotPackages.Read.All to an existing integration, see Add permissions to an existing integration.
Permissions for disabling AI agents
Oleria uses these permissions for the Disable agent action, which is being rolled out. They are listed in the tables for the integration with optional remediation capabilities. If you plan to use the action with your own app registration, add them when you set it up, so you don’t have to change the setup when the action arrives.User.Read.All. That includes CopilotPackages.ReadWrite.All in a tenant that has no Microsoft Agent 365 license.
Disable a non-human identity uses the same permissions on an agent identity (AgentIdentity.EnableDisable.All) and on an agent user (User.EnableDisableAccount.All, User.Read.All, and User.RevokeSessions.All). Those two targets are also being rolled out.
To add these permissions to an existing integration, see Add permissions to an existing integration.
Add permissions to an existing integration
You add permissions to an existing integration in Microsoft Entra ID, without reconnecting it in Oleria. For an integration that connected with Authenticate via Microsoft (OAuth), a tenant administrator grants admin consent again to the Oleria application the integration connected with. Microsoft then grants the permissions that application requests, and the integration keeps its application and its connection.Open the Oleria application
Sites.Read.All (Read items in all site collections), and the applications with remediation hold User.EnableDisableAccount.All (Enable and disable user accounts). The application for Microsoft Entra ID without remediation holds neither. Select the one for your integration.Open its permissions
Grant admin consent
Check the permissions
CopilotPackages.Read.All (Read all packages information).CopilotPackages.Read.All from the next sync. It checks the integration’s permissions for remediation actions again on the next sync, and it can take about a day before it offers an action that needed them.
Oleria refuses write actions, including Disable agent, on an integration saved with the remediation checkbox cleared, except to revert an action it already ran. An integration with no choice saved, such as one connected before the checkbox existed, isn’t refused. To turn remediation on or off for an existing integration, contact support@oleria.com.
Verify agent discovery
After the next sync completes, open the Agents inventory and filter Application Instance to your Microsoft Entra ID integration. If Copilot Studio agents are missing, or appear without their configuration, check that the integration holdsCopilotPackages.Read.All and that your tenant has a Microsoft Agent 365 license.
Remediation actions
If you granted the optional remediation permissions, Oleria can take these actions in Microsoft Entra ID. Each action needs the permission listed in the Add Microsoft Graph permissions step.- Enable or disable a user
- Add or remove a user from a group
- Add or remove a user from a directory role
- Assign or unassign a user to an application
- Assign or remove a group’s access to an application
- Disable a non-human identity: a service principal, or a shared, room, or equipment mailbox that Oleria lists as a non-human identity
- Disable a non-human identity: an agent identity or an agent user (being rolled out)
- Disable agent (being rolled out). See Permissions for disabling AI agents.
- Create a user
- Delete a user
- Revoke a user’s sign-in sessions
- Refused accounts: Oleria refuses to disable the service principal the integration signs in with, an Oleria application’s service principal, a Microsoft first-party application’s service principal, a service principal that Microsoft has disabled, and an agent identity blueprint’s service principal, which every agent created from the blueprint shares.
- Not confirmed yet: If Microsoft Entra ID accepts the disable but doesn’t show the change yet, the action succeeds, and the row’s Reason in Action Center starts with “Not confirmed yet”.
- Revert: Revert enables only an account the action disabled. If Microsoft Entra ID doesn’t answer the request that enables the account, the revert fails and the account may still be disabled. Check the account in the Microsoft Entra admin center.
SharePoint and OneDrive
If you connected SharePoint & OneDrive and granted the SharePoint remediation permissions, Oleria can also take these actions. The permissions each one needs are in the Add Microsoft Graph permissions step of Connect with a client secret.Check the Oleria app in your Entra ID instance
Find the Oleria app in Enterprise applications

View granted permissions


