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 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.
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"
      }
    }
  }
}