Skip to main content

Add user to group

Action ID: tools.microsoft_entra.add_user_to_group Add a Microsoft Entra ID user to a group. Reference: https://learn.microsoft.com/en-us/graph/api/group-post-members?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
required
The unique identifier of the group.
string
required
The unique identifier of the user (directory object) to add.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.

Confirm compromised users

Action ID: tools.microsoft_entra.confirm_compromised_users Confirm one or more riskyUser objects as compromised. This action sets the targeted user’s risk level to high. Requires a Microsoft Entra ID P2 license and the IdentityRiskyUser.ReadWrite.All permission (delegated or application). IdentityRiskyUser.ReadWrite.All is not in the default delegated scopes, so add it to the integration’s scopes before connecting. For delegated access, the signed-in user needs at least the Security Administrator role. Reference: https://learn.microsoft.com/en-us/graph/api/riskyuser-confirmcompromised?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

array[string]
required
Specify the risky user IDs to mark as high risk.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.

Create group

Action ID: tools.microsoft_entra.create_group Create a Microsoft Entra ID group. Reference: https://learn.microsoft.com/en-us/graph/api/group-post-groups?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

object
required
Properties for the new group resource (displayName, mailEnabled, mailNickname, securityEnabled, etc.).
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.

Create user

Action ID: tools.microsoft_entra.create_user Create a Microsoft Entra ID user account. Reference: https://learn.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

object
required
User properties for the request body (e.g. accountEnabled, displayName, mailNickname, userPrincipalName, passwordProfile).
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.

Delete group

Action ID: tools.microsoft_entra.delete_group Delete a Microsoft Entra ID group. Reference: https://learn.microsoft.com/en-us/graph/api/group-delete?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
required
The unique identifier of the group to delete.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.

Delete user

Action ID: tools.microsoft_entra.delete_user Delete a Microsoft Entra ID user. Reference: https://learn.microsoft.com/en-us/graph/api/user-delete?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
required
The unique identifier of the user to delete.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.

Get group

Action ID: tools.microsoft_entra.get_group Retrieve details for a Microsoft Entra ID group. Reference: https://learn.microsoft.com/en-us/graph/api/group-get?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
required
The unique identifier of the group to retrieve.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.
array[string] | null
Optional related entities to expand in the response.Default: null.
array[string] | null
Optional set of group properties to return.Default: null.

Get user

Action ID: tools.microsoft_entra.get_user Retrieve details for a Microsoft Entra ID user. Reference: https://learn.microsoft.com/en-us/graph/api/user-get?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
required
The unique identifier of the user to retrieve.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.
array[string] | null
Optional related entities to expand in the response.Default: null.
array[string] | null
Optional set of user properties to return.Default: null.

Get user ID by email

Action ID: tools.microsoft_entra.get_user_id_by_email Get a user’s ID by searching for their email address in mail or userPrincipalName. Reference: https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
required
The email address to search for.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.

List groups

Action ID: tools.microsoft_entra.list_groups List Microsoft Entra ID groups with optional OData queries. Reference: https://learn.microsoft.com/en-us/graph/api/group-list?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.
boolean
Set ConsistencyLevel=eventual for advanced queries when required by Microsoft Graph.Default: false.
array[string] | null
Optional related entities to expand in the response.Default: null.
string | null
Optional OData $filter expression.Default: null.
integer | null
Optional maximum page size to request via Prefer=odata.maxpagesize.Default: null.
string | null
Optional OData $orderby expression.Default: null.
Optional search phrase. Use quoted property names as documented, for example “displayName:Engineering”.Default: null.
array[string] | null
Optional set of group properties to return.Default: null.
string | null
Opaque continuation token from a previous response ($skiptoken).Default: null.
integer | null
Maximum number of results to return in a single page ($top).Default: null.

List user memberships

Action ID: tools.microsoft_entra.list_user_memberships Get groups, directory roles, and administrative units that the user is a direct member of. This operation isn’t transitive; use list user transitive memberships to include transitive membership. Least privileged permission: User.Read.All (delegated) or Directory.Read.All (application). Reference: https://learn.microsoft.com/en-us/graph/api/user-list-memberof?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
required
The user’s ID or userPrincipalName.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.
string | null
ConsistencyLevel header. Set to eventual when using filter, search, orderby, or OData cast.Default: null.
boolean | null
OData $count. Include @odata.count in the response.Default: null.
string | null
OData $filter. Requires count set to true and consistency_level set to eventual.Default: null.
string | null
OData $orderby. Requires count set to true and consistency_level set to eventual.Default: null.
string | null
OData $search. Supported on the displayName property only, for example “displayName:Security”. Requires count set to true and consistency_level set to eventual.Default: null.
string | null
OData $select. Comma-separated properties to return.Default: null.
string | null
OData $skiptoken from the @odata.nextLink of a previous response, used to fetch the next page.Default: null.
integer | null
OData $top. Page size. The default is 100 and the maximum is 999.Default: null.

List user transitive memberships

Action ID: tools.microsoft_entra.list_user_transitive_memberships Get groups, directory roles, and administrative units that the user is a member of through either direct or transitive membership. Least privileged permission: User.Read.All (delegated or application). Reference: https://learn.microsoft.com/en-us/graph/api/user-list-transitivememberof?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
required
The user’s ID or userPrincipalName.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.
string | null
ConsistencyLevel header. Set to eventual when using filter, search, orderby, or OData cast.Default: null.
boolean | null
OData $count. Include @odata.count in the response.Default: null.
string | null
OData $filter. Requires count set to true and consistency_level set to eventual.Default: null.
string | null
OData $orderby. Requires count set to true and consistency_level set to eventual.Default: null.
string | null
OData $search. Supported on the displayName property only, for example “displayName:Security”. Requires count set to true and consistency_level set to eventual.Default: null.
string | null
OData $select. Comma-separated properties to return.Default: null.
string | null
OData $skiptoken from the @odata.nextLink of a previous response, used to fetch the next page.Default: null.
integer | null
OData $top. Page size. The default is 100 and the maximum is 999.Default: null.

List users

Action ID: tools.microsoft_entra.list_users List Microsoft Entra ID users with optional OData query parameters. Reference: https://learn.microsoft.com/en-us/graph/api/user-list?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.
boolean
Set ConsistencyLevel=eventual for advanced queries when required by Microsoft Graph.Default: false.
boolean
Include @odata.count in the response by setting $count=true.Default: false.
array[string] | null
Optional related entities to expand in the response.Default: null.
string | null
Optional OData $filter expression.Default: null.
integer | null
Optional maximum page size to request via Prefer=odata.maxpagesize.Default: null.
string | null
Optional OData $orderby expression.Default: null.
string | null
Optional search phrase. Use quoted property names per Microsoft Graph syntax, for example “displayName:Alex”.Default: null.
array[string] | null
Optional set of user properties to return.Default: null.
string | null
Opaque continuation token from a previous response ($skiptoken).Default: null.
integer | null
Maximum number of results to return in a single page ($top).Default: null.

Remove user from group

Action ID: tools.microsoft_entra.remove_user_from_group Remove a Microsoft Entra ID user from a group. Reference: https://learn.microsoft.com/en-us/graph/api/group-delete-members?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
required
The unique identifier of the group.
string
required
The unique identifier of the user (directory object) to remove.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.

Revoke user sign-in sessions

Action ID: tools.microsoft_entra.revoke_user_sign_in_sessions Invalidate all the refresh tokens issued to applications for a user (and session cookies in a user’s browser) by resetting the signInSessionsValidFromDateTime user property to the current date-time. There might be a delay of a few minutes before tokens are revoked. Does not revoke sessions for external users. Least privileged permission: User.RevokeSessions.All (delegated or application); User.ReadWrite.All and Directory.ReadWrite.All also work for delegated access. Reference: https://learn.microsoft.com/en-us/graph/api/user-revokesigninsessions?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
required
The user’s ID or userPrincipalName.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.

Update group

Action ID: tools.microsoft_entra.update_group Update properties on a Microsoft Entra ID group. Reference: https://learn.microsoft.com/en-us/graph/api/group-update?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

string
required
The unique identifier of the group to update.
object
required
Group properties to update as defined in the Microsoft Graph group resource.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.

Update user

Action ID: tools.microsoft_entra.update_user Update properties on a Microsoft Entra ID user. Reference: https://learn.microsoft.com/en-us/graph/api/user-update?view=graph-rest-1.0

Secrets

Optional secrets:
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_USER_TOKEN.
  • microsoft_entra_oauth: OAuth token MICROSOFT_ENTRA_SERVICE_TOKEN.

Input fields

object
required
User properties to update as defined in the Microsoft Graph user resource.
string
required
The unique identifier of the user to update.
string
Microsoft Graph API version.Default: "v1.0".
string | null
Microsoft Graph host, without the API version. If omitted, uses the workspace variable microsoft_entra.base_url, then https://graph.microsoft.com. National clouds: https://graph.microsoft.us (US Government L4) and https://dod-graph.microsoft.us (US Government L5 DOD).Default: null.