Query
query UserGroups {
userGroups {
createdAt
id
name
users {
allowedLocations {
children {
__typename
}
id
isSite
location
parentId
tags
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
}
}Response
{
"data": {
"userGroups": [
{
"createdAt": "value",
"id": "string",
"name": "string",
"users": [
{
"allowedLocations": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
}
]
}
]
}
}Queries
userGroups
All user groups in the organization.
Query
query UserGroups {
userGroups {
createdAt
id
name
users {
allowedLocations {
children {
__typename
}
id
isSite
location
parentId
tags
}
avatarUrl
department
email
firstName
groups {
__typename
}
}
}
}Response
{
"data": {
"userGroups": [
{
"createdAt": "value",
"id": "string",
"name": "string",
"users": [
{
"allowedLocations": [
{
"children": [
{
"__typename": "Location"
}
],
"id": 1,
"isSite": true,
"location": "string",
"parentId": 1,
"tags": [
"string"
]
}
],
"avatarUrl": "string",
"department": "string",
"email": "string",
"firstName": "string",
"groups": [
{
"__typename": "UserGroup"
}
]
}
]
}
]
}
}