API Stability Short-Term

The hasOrgRoot() GraphQL query will check whether an organization has an organization root.

For information on root access, see the Managing Root Access documentation page.

Syntax

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

graphql
hasOrgRoot(
     orgId: string!
   ): boolean!

There are no special datatypes used with this query field.

To determine if user has root access for an organization, enter something like the following:

Show:
graphql
query {
  hasOrgRoot(orgId: "SINGLE_ORGANIZATION_ID")
}
Example Responses
Show:
json
{
  "data": {
    "hasOrgRoot": true
  }
}

If you don't know the unique identifier of the organization, you can use searchOrganizations() to get it.