Skip to content

userAccessInsights

Return the user access insights for the given time range.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String Returns the elements in the list that occur after the specified cursor.
last Int Returns the last n elements from the list.
before String Returns the elements in the list that occur before the specified cursor.
startTime (required) DateTime! Start time in ISO string format (YYYY-MM-DDThh🇲🇲ssZ).
endTime (required) DateTime! End time in ISO string format (YYYY-MM-DDThh🇲🇲ssZ).
includeWhitelistedResults Boolean Specifies whether whitelisted results should be included.

Returns

PrincipalInsightConnection!

Sample

query UserAccessInsights($startTime: DateTime!, $endTime: DateTime!) {
  userAccessInsights(
    startTime: $startTime
    endTime: $endTime
    first: 10
  ) {
    nodes {
      message
      time
      type
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "startTime": "2024-01-01T00:00:00.000Z",
  "endTime": "2024-01-01T00:00:00.000Z"
}
{
  "data": {
    "userAccessInsights": {
      "nodes": [
        [
          {
            "message": "example-string",
            "time": "2024-01-01T00:00:00.000Z",
            "type": "ACL_CHANGE"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}