Skip to content

sonarUsers

Endpoints for Users list page Returns a paginated list of access users discovered by classification.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String An opaque cursor returned from a previous query's endCursor field. Pass this value verbatim to retrieve the next page of results.
last Int Returns the last n elements from the list.
before String An opaque cursor returned from a previous query's startCursor field. Pass this value verbatim to retrieve the previous page of results.
filter ListAccessUsersFilterInput Optional filter to narrow the returned users by group or name.
sort ListAccessUsersSortInput Optional sort criteria for the returned users.

Returns

AccessUserConnection!

Sample

query {
  sonarUsers(first: 10) {
    nodes {
      activityDelta
      email
      lastAccessTime
      numActivities
      subjectName
      userSid
      username
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{}
{
  "data": {
    "sonarUsers": {
      "nodes": [
        [
          {
            "activityDelta": 0,
            "email": "example-string",
            "lastAccessTime": 0,
            "numActivities": 0,
            "subjectName": "example-string",
            "userSid": "example-string"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}