Skip to content

adGroupMembers

Returns members matching an AD group spec, in a given org.

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.
orgId (required) UUID! Org UUID.
adGroupSpec (required) AdGroupSpecInput! The Azure Active Directory group spec.

Returns

O365AdGroupMemberConnection!

Sample

query AdGroupMembers($orgId: UUID!, $adGroupSpec: AdGroupSpecInput!) {
  adGroupMembers(
    orgId: $orgId
    adGroupSpec: $adGroupSpec
    first: 10
  ) {
    nodes {
      name
      naturalId
      pdl
      userPrincipalName
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "orgId": "00000000-0000-0000-0000-000000000000",
  "adGroupSpec": {
    "filterAttributes": [
      {}
    ],
    "naturalId": "00000000-0000-0000-0000-000000000000"
  }
}
{
  "data": {
    "adGroupMembers": {
      "nodes": [
        [
          {
            "name": "example-string",
            "naturalId": "example-string",
            "pdl": "example-string",
            "userPrincipalName": "example-string"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}