API Stability Long-Term

The usersAndGroupsForChangingUserAccess() GraphQL query field is used to get users and groups for changing user access.

For more information on user authorization, see the Manage users & permissions documentation page.

Syntax

Below is the syntax for the usersAndGroupsForChangingUserAccess() query field:

graphql
usersAndGroupsForChangingUserAccess(
     search: string
     searchDomainId: string!
     skip: integer
     limit: integer
   ): UsersAndGroupsSearchResultSet!

Below is an example of how this query field might be used:

Show:
graphql
query {
  usersAndGroupsForChangingUserAccess(searchDomainId:"aK9GKAsTnMXfRxT8Fpecx3fX")
  {totalResults}
}

Returned Datatypes

UsersAndGroupsSearchResultSet has a couple of parameters and some sub-parameters. Below is a list of them along with a description of each:

Table: UsersAndGroupsSearchResultSet

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Oct 4, 2024
results[UserOrGroup]yes Long-TermThe results sets of users and groups. See Group and User.
totalResultsintegeryes Long-TermThe total number of matching results.