Edit

Get appManagementAudit

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 the properties of an appManagementAudit object.

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) AuditLog.Read.All and Directory.Read.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application AuditLog.Read.All and Directory.Read.All Not available.

Important

For delegated access using work or school accounts, the signed-in user must be assigned a supported Microsoft Entra role or a custom role that grants the permissions required for this operation. This operation supports the following built-in roles, which provide only the least privilege necessary:

  • Reports Reader
  • Security Administrator
  • Security Reader

HTTP request

GET /auditLogs/directoryAudits/microsoft.graph.appManagementAudit/{id}

You can also retrieve the object through the base collection:

GET /auditLogs/directoryAudits/{id}

Optional query parameters

This method doesn't support any 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 an appManagementAudit object in the response body.

Example

Request

The following example shows a request.

GET https://graph.microsoft.com/beta/auditLogs/directoryAudits/microsoft.graph.appManagementAudit/B2C_491230e0-ffbd-44d0-ae95-914bb5534bf8

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.type": "#microsoft.graph.appManagementAudit",
  "id": "B2C_491230e0-ffbd-44d0-ae95-914bb5534bf8",
  "category": "ApplicationManagement",
  "appliedAppManagementPolicyRestrictions": [
    {
      "restrictionType": "passwordLifetime",
      "restrictionState": "audit",
      "restrictionResult": "allowed",
      "auditResult": "wouldHaveBeenAllowed",
      "policyId": "8b653f97-8314-45ec-95d4-97de6ccd4841",
      "policyType": "app",
      "restrictionDetails": {
        "maxLifeTime": "P180D"
      },
      "attemptedChanges": {}
    }
  ]
}