Update unifiedRoleManagementAlert

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Dismiss a unifiedRoleManagementAlert object by setting the isActive property to false.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) RoleManagementAlert.ReadWrite.Directory Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application RoleManagementAlert.ReadWrite.Directory Not available.

For delegated scenarios, the calling user must also be assigned at least the Privileged Role Administrator Microsoft Entra role.

HTTP request

PATCH /identityGovernance/roleManagementAlerts/alerts/{unifiedRoleManagementAlertId}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply only the values for properties that should be updated. Existing properties that aren't included in the request body maintains their previous values or be recalculated based on changes to other property values.

The following table specifies the properties that can be updated.

Property Type Description
isActive Boolean false by default; true if the alert is active. Set to false to dismiss the alert. Required.

Response

If successful, this method returns a 204 No Content response code.

Examples

Request

The following example shows a request to dismiss an alert by specifying the alert id and setting the isActive to false.

PATCH https://graph.microsoft.com/beta/identityGovernance/roleManagementAlerts/alerts/DirectoryRole_67b47f38-0f0b-4e62-a3be-859140c2061f_StaleSignInAlert
Content-Type: application/json

{
  "isActive": false
}

Response

The following example shows the response.

HTTP/1.1 204 No Content