API Stability |
Long-Term
|
The group() GraphQL query is used to specify a group.
For more information on user groups, see the Manage Groups documentation page.
Syntax
Below is the syntax for the group() query field:
group(
groupId: string!
): Group!
To be able to get information on a particular group, with this query you have to provide the unique identifier for the group.
For the return value Group
, you'll need to
specify at least one of its parameters (see the Returned Datatypes
section below). Here's an example which specifies two values:
query{
group(groupId: "BHdJstvjgDUjXg10KrbjiybpSbOHIw1b") {
displayName, userCount
}
}
{
"data": {
"group": {
"displayName": "chiefs",
"userCount": 3
}
}
}
This example requests first the display name of the group, then number of users in the group. See the next section for a table containing more values you can request.
Returned Datatypes
The returned datatype group() has its own parameters. Below is a list of them along with their datatypes and a description of each:
Table: Group
Parameter | Type | Required | Default | Stability | Description |
---|---|---|---|---|---|
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: Nov 12, 2024 | |||||
allowedAssetActionsBySource | multiple | yes | Preview | Get allowed asset actions for the group on a specific asset and explain how it has gotten this access The multiple datatype consists of (assetId: string!, assetType: AssetPermissionsAssetType!, searchDomainId: string): GroupAssetActionsBySource! . See AssetPermissionsAssetType GroupAssetActionsBySource . | |
assetPermissions | multiple | yes | Long-Term | Get asset permissions assigned to the group for the specific asset. The datatype consists of (assetId: string!, assetType: AssetPermissionsAssetType!, searchDomainId: string): AssetPermissionsForGroup! . See AssetPermissionsAssetType and AssetPermissionsForGroup . | |
defaultQueryPrefix | string | Long-Term | The default prefix for queries. | ||
defaultRole | Role | Long-Term | The default role associated with the group. See Role . | ||
defaultSearchDomainCount | integer | yes | Long-Term | The default search domain count. | |
displayName | string | yes | Long-Term | The display name of the group. | |
id | string | yes | Long-Term | The identifier of the group. | |
lookupName | string | Long-Term | The look-up name for the group. | ||
organizationRoles | [GroupOrganizationRole ] | yes | Long-Term | The roles of the organization associated with the group. See GroupOrganizationRole . | |
permissionType | PermissionType | Long-Term | Indicates which level of permissions the group contains. See PermissionType . | ||
queryPrefixes | [QueryPrefixes ] | yes | Long-Term | The query prefixes for the group. queryPrefixes(onlyIncludeRestrictiveQueryPrefixes: boolean, onlyForRoleWithId: string): [QueryPrefixes!]! See QueryPrefixes . | |
roles | [SearchDomainRole ] | yes | Long-Term | The roles for the group See SearchDomainRole . | |
searchAssetPermissions | multiple | yes | Preview | Search for asset permissions for the group. This is a preview and subject to change. The datatype consists of (searchFilter: string, skip: integer, limit: integer, orderBy: OrderBy, sortBy: SortBy, assetTypes: [AssetPermissionsAssetType!], searchDomainIds: [string!], permissions: [AssetPermissionInputEnum!], includeUnassignedAssets: boolean): AssetPermissionSearchResultSet! . See AssetPermissionsAssetType AssetPermissionInputEnum , and AssetPermissionSearchResultSet . | |
searchDomainCount | integer | yes | Long-Term | The number of search domains for the group. | |
searchDomainRoles | multiple | yes | Long-Term | The search domain roles assigned to the group. The multiple datatype consists of (searchDomainId: string): [SearchDomainRole]. (seeSearchDomainRole ). | |
searchDomainRolesByName | multiple | yes | Long-Term | The search domain roles assigned to the group, by name. The multiple datatype consists of (searchDomainName: string): SearchDomainRole. See SearchDomainRole . | |
searchDomainRolesBySearchDomainName | string | yes | Long-Term | The domain roles by search domain name. The datatype consists of (searchDomainName: string!): [SearchDomainRole!] . See SearchDomainRole . | |
searchUsers | multiple | yes | Long-Term | Used to search the list of users in the group. The datatype consists of (searchFilter: string, skip: integer, limit: integer, sortBy: OrderByUserField, orderBy: OrderBy): UserResultSetType! . See OrderByUserField , OrderBy , UserResultSetType . | |
systemRoles | [GroupSystemRole ] | yes | Long-Term | The system roles of the group (see GroupSystemRole Table). | |
userCount | integer | yes | Long-Term | The number of users that are part of the group. | |
users | [User ] | yes | Long-Term | The list of users in the group. See User . |