Entra ID Identity Search
The Entra ID Identity Search connector lets you search your Microsoft Entra ID users from SenseOn and see their details. It also lets you respond to identity-based threats. You can revoke active sign-in sessions and disable accounts. You can do an action on an identity from a case. You can also do an action from Assets > Identities for routine security maintenance, even when the user is not part of a case.
The connector uses a Microsoft Entra application (service principal) that you create in your tenant. SenseOn calls the Microsoft Graph API through that application. Thus, the permissions of the application control which actions SenseOn can do. Usually, set-up problems occur because the application does not have a permission. Thus, carefully examine the Required Microsoft Graph permissions.
Availability: If the Entra ID Identity Search card is not in your integration catalogue, ask your Customer Success Manager to enable it for your platform.
Before you begin
- Your Entra ID tenant must have a P1 or P2 premium subscription.
- You must have an Entra ID role that can create app registrations and grant admin consent. Usually, this role is Global Administrator or Privileged Role Administrator. If a different person has that role, send that person the Required Microsoft Graph permissions before you start.
- In SenseOn, you must have permission to manage integrations. To do a containment action on an identity, you must also have Active Response access.
Step 1: Create the Entra application
- In the Microsoft Entra admin centre, create a Microsoft Entra application and service principal. Use the procedure in the Microsoft documentation. Users never sign in to this application directly. Thus, for the redirect URI, you can select Single-page application (SPA) and keep the value blank.
- On the Overview tab of the application, copy the Application (client) ID and the Directory (tenant) ID to a safe location. You enter both IDs in SenseOn later.
- Go to Manage > Certificates & secrets.
- Add a new client secret.
- Copy the secret value to the same safe location, next to the client ID and tenant ID. Microsoft shows the secret value one time only.
Client secret expiry: Record the expiry date of the client secret, because Entra ID client secrets expire. Replace the secret before that date. If you do not replace it, the connection no longer works. Refer to Replacing an expired client secret.
Step 2: Assign the Graph permissions
Follow the Microsoft documentation to assign app roles to the application. In the application, go to Manage > API permissions. Select Add a permission > Microsoft Graph > Application permissions. Then add each permission in the table that follows. Select Application permissions, not Delegated permissions. Delegated permissions act for a signed-in user, and nobody signs in to this application.
Required Microsoft Graph permissions
| Permission | Type |
|---|---|
AuditLog.Read.All |
Application |
Directory.Read.All |
Application |
User.ReadWrite.All |
Application |
User.RevokeSessions.All |
Application |
UserAuthenticationMethod.Read.All |
Application |
Assign all five permissions, even if you plan to authorise only one action. The read permissions let SenseOn search users and show their details, MFA status and sign-in history. User.ReadWrite.All is necessary for Disable user and Re-enable account. It is also the permission that is missed most frequently. Revoke sessions needs User.RevokeSessions.All, because Microsoft Graph accepts only that application permission for revoking sign-in sessions. The integration card in SenseOn lists the other four, so add this one yourself.
When the list shows all five permissions, select Grant admin consent for
Disabling Entra administrators: Microsoft Graph permissions alone do not let an application disable a user who has an Entra ID administrator role. Microsoft's Update user reference states that, in app-only scenarios, the app must also have a higher privileged administrator role to update
accountEnabledfor such users. Privileged Authentication Administrator is the least privileged role that can do this for each administrator role in the tenant. Refer to the Microsoft table of roles for sensitive actions. If you want SenseOn to be able to disable administrator accounts during an incident, assign that role to the application under Roles and administrators. Most customers do not assign this role, and they manage administrator accounts manually.
Step 3: Create the integration in SenseOn
- In SenseOn, select Integrations in the main side menu.
- Select Set up a new integration. For the set-up page, refer to Data Connectors.
- To open the connection form, select the Entra ID Identity Search card.
- Complete the form. The table that follows describes the fields.
- Select Connect.
| Field | What to enter |
|---|---|
| Integration name | A unique name for this connection, for example Entra ID production tenant. The name helps you to quickly see the difference between this connection and other integrations. |
| Tenant ID | The Directory (tenant) ID that you copied from the Overview tab of the application. |
| Which actions do you want to authorise? | Select one or both. Revoke sessions asks Entra ID to invalidate the refresh tokens and Entra session cookies of the user. Then the user must sign in again when their current access tokens expire. Usually, this occurs in one hour or less. Until then, applications that hold a valid access token, or that manage their own session, can keep the user signed in. Thus, if you must be sure that an account is contained, use this action together with Disable user. Disable user disables the account, so the user cannot sign in to any application. If your change policy does not let SenseOn do an action, clear the checkbox for that action. |
| Client ID | The Application (client) ID from the Overview tab. |
| Client secret | The secret value that you copied when you created the secret. |
After you connect, the integration shows in your installed list. SenseOn reads identity data from Entra ID in the background. The Assets > Identities view shows a note that identity sources sync every five minutes. Thus, after you connect a tenant, it can take a few minutes before the tenant shows.
Using Identity Search
From Assets
Open Assets > Identities. This view shows the users from all connected identity providers in one list. Search by name or email address, or filter by status. Then select an identity to open its side panel. The panel shows these details of the identity:
- Source (the provider that the identity came from)
- Email address
- Full name
- Status
- MFA status
- Created, last login and last modified dates
- Job title
- Groups
More Entra ID attributes are under Show more. Refresh gets the latest record from Entra ID.
The Take Action section at the top of the panel shows the actions that are available for that identity. These actions are Revoke sessions, Disable user, or, for an account that is already disabled, Re-enable account. If you do not have Active Response access, the buttons are greyed out. The tooltip gives the reason. Response History at the bottom of the panel shows each action that you do.
From a case
When a case involves a user who exists in Entra ID, the response actions of the case include the same actions. Thus, you can contain the account and stay in the investigation.
Troubleshooting
Forbidden: Insufficient privileges to complete the operation
The connection shows a warning status, or a Disable user action does not work. The error message is Forbidden: Insufficient privileges to complete the operation.
Microsoft Graph refuses the request because the application does not have a permission for that action. Almost always, the cause is one of these two problems:
- A permission is missing. The most common gap is
User.ReadWrite.All, which is necessary for Disable user and Re-enable account. Revoke sessions needsUser.RevokeSessions.All. Compare the API permissions page of the application with the Required Microsoft Graph permissions table. Add each permission that is not on the page. - Admin consent has not been granted. The list shows the permissions, but their Status column is blank or shows Not granted. Select Grant admin consent for
.
Permissions belong to the app registration, not to the client secret. Thus, after you add a permission, a new secret is not necessary. SenseOn gets the new permission at the next action. If actions still do not work a few minutes after you grant consent, delete the integration in SenseOn. Then create it again with the same tenant ID, client ID and secret.
If the user that you want to disable has an Entra ID administrator role, refer to the note on disabling Entra administrators.
No actions can be performed at this time
The identity side panel shows this message under Take Action when SenseOn has no actions that it can offer for that identity. Make sure that:
- At least one of Revoke sessions and Disable user was selected when the integration was created. If neither action was selected, delete the integration. Then create it again with the actions that you want.
- The connection is not in an error state. Open Integrations. Select the connection. Then examine its status and error message.
If the buttons show but are greyed out, hover over a button to read the reason. Usually, the cause is that your SenseOn user does not have Active Response access.
Replacing an expired client secret
When the client secret expires, the connection goes into an error state. Identity data no longer refreshes. Create a new secret in the Entra application under Certificates & secrets. Then delete the integration in SenseOn. Create the integration again with the new secret. The tenant ID and client ID do not change.
The card is not in the catalogue
Entra ID Identity Search is enabled for each platform separately. If you cannot find the card under Set up a new integration, ask your Customer Success Manager to enable it.
Related
- Data Connectors for the integrations page and the other identity connectors
- Assets for the Identities view
- Active Response for the permissions that are necessary for containment actions