編輯

共用方式為


List alertIncidents

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.

Get a list of the alert incidents. The alert incidents are a collection of any following type that is derived from the unifiedRoleManagementAlertIncident object:

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.Read.Directory RoleManagementAlert.ReadWrite.Directory
Delegated (personal Microsoft account) Not supported. Not supported.
Application RoleManagementAlert.Read.Directory RoleManagementAlert.ReadWrite.Directory

In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported Microsoft Entra role or a custom role with a supported role permission. The following least privileged roles are supported for this operation.

  • Privileged Role Administrator
  • Global Reader
  • Security Administrator
  • Security Reader

HTTP request

GET /identityGovernance/roleManagementAlerts/alerts/{unifiedRoleManagementAlertId}/alertIncidents

Optional query parameters

This method supports the $select, $filter, $top, and $expand OData query parameters to help customize the response. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a collection of unifiedRoleManagementAlertIncident objects in the response body.

Examples

Request

The following example shows a request that retrieves the top five alert incidents of an alert under the tenant resource scope.

GET https://graph.microsoft.com/beta/identityGovernance/roleManagementAlerts/alerts/DirectoryRole_67b47f38-0f0b-4e62-a3be-859140c2061f_TooManyGlobalAdminsAssignedToTenantAlert/alertIncidents?$top=5

Response

The following example shows the response.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#identityGovernance/roleManagementAlerts/alerts('DirectoryRole_67b47f38-0f0b-4e62-a3be-859140c2061f_TooManyGlobalAdminsAssignedToTenantAlert')/alertIncidents",
    "value": [
        {
            "@odata.type": "#microsoft.graph.tooManyGlobalAdminsAssignedToTenantAlertIncident",
            "id": "13d5df6a-3d2e-4dcb-9dab-486df2cf5c8e",
            "assigneeId": "13d5df6a-3d2e-4dcb-9dab-486df2cf5c8e",
            "assigneeDisplayName": "testUser1",
            "assigneeUserPrincipalName": "testuser1@contoso.com"
        },
        {
            "@odata.type": "#microsoft.graph.tooManyGlobalAdminsAssignedToTenantAlertIncident",
            "id": "1d14292b-8a56-41cb-ac9c-e1e3a69e0e71",
            "assigneeId": "1d14292b-8a56-41cb-ac9c-e1e3a69e0e71",
            "assigneeDisplayName": "testUser2",
            "assigneeUserPrincipalName": "testuser2@contoso.com"
        },
        {
            "@odata.type": "#microsoft.graph.tooManyGlobalAdminsAssignedToTenantAlertIncident",
            "id": "36158c4b-adc5-445c-8130-862cba705dad",
            "assigneeId": "36158c4b-adc5-445c-8130-862cba705dad",
            "assigneeDisplayName": "testUser3",
            "assigneeUserPrincipalName": "testuser3@contoso.com"
        },
        {
            "@odata.type": "#microsoft.graph.tooManyGlobalAdminsAssignedToTenantAlertIncident",
            "id": "38f6f1bd-2a6e-4d47-b738-0bb189c9c389",
            "assigneeId": "38f6f1bd-2a6e-4d47-b738-0bb189c9c389",
            "assigneeDisplayName": "testUser4",
            "assigneeUserPrincipalName": "testuser4@contoso.com"
        },
        {
            "@odata.type": "#microsoft.graph.tooManyGlobalAdminsAssignedToTenantAlertIncident",
            "id": "42793c70-b1e4-49bb-82c0-9fed214f05ab",
            "assigneeId": "42793c70-b1e4-49bb-82c0-9fed214f05ab",
            "assigneeDisplayName": "testUser5",
            "assigneeUserPrincipalName": "testuser5@contoso.com"
        }
    ],
    "@odata.nextLink": "https://graph.microsoft.com/beta/identityGovernance/roleManagementAlerts/alerts/DirectoryRole_67b47f38-0f0b-4e62-a3be-859140c2061f_TooManyGlobalAdminsAssignedToTenantAlert/alertIncidents?$top=5&$skip=5"
}