> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke User Sessions

Revokes a user’s sessions. If no user is specified, the current user’s sessions will be revoked.

Note, Using **OAuth** (delegated) connection, only **admins** can revoke other users' sessions, while **non-admins** can revoke only their own.

* **Least privileged** Microsoft Graph permission to access the action via **application**: `User.RevokeSessions.All`.

<Note>
  External Documentation

  To learn more, visit the [Microsoft Entra ID documentation](https://learn.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0\&tabs=http).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                                                                                                                                                              |
  | --------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | User ID   | The user ID or principal name of the user whose sessions are to be revoked.<br /><br /> Note:<br /> \* This field is **required** when using an **application** connection.<br /> \* When using an **OAuth** (delegated) connection, leave this field empty to revoke the connected user’s own sessions. |
</div>

## Example Output

```json theme={"dark"}
{
	"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Edm.Boolean",
	"value": true
}
```

## Workflow Library Example

[Revoke User Sessions with Microsoft Entra Id and Send Results Via Email](https://library.blinkops.com/workflows/revoke-user-sessions-with-microsoft-entra-id-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/revoke-user-sessions-with-microsoft-entra-id-and-send-results-via-email/canvas" />
</div>
