Download OpenAPI specification:
Integrate Glance into your customer service workflows with secure, flexible APIs.
This suite of endpoints provides comprehensive administrative control over user affiliations, allowing you to view, assign, and expire user affiliations across your organization's subgroups.
Returns list of affiliations for a user within the scope of a group. External group affiliations are excluded.
Required Permissions:
| group_id required | integer <int64> The ID of the parent group |
| user_id required | integer <int64> The ID of the user to get affiliations for |
[- {
- "groupId": 333,
- "groupName": "Parent Group",
- "expirationDate": null,
- "affiliated": true
}, - {
- "groupId": 100,
- "groupName": "subgroup-1",
- "expirationDate": null,
- "affiliated": true
}, - {
- "groupId": 200,
- "groupName": "subgroup-2",
- "expirationDate": null,
- "affiliated": false
}
]Add affiliations connecting a user to one or more subgroups. Only subgroups of the parent group are allowed.
Required Permissions (all required):
Important: This endpoint only works from a top-level group. Calling from a subgroup will return error: "Cannot directly update affiliations of a user in a subgroup"
| group_id required | integer <int64> The ID of the parent group (must be a top-level group) |
| user_id required | integer <int64> The ID of the user to add affiliations for |
The ID of a subgroup to affiliate the user with.
[- 100,
- 200,
- 300
][- {
- "groupId": 100,
- "groupName": "subgroup-1",
- "expirationDate": null,
- "affiliated": true
}, - {
- "groupId": 200,
- "groupName": "subgroup-2",
- "expirationDate": null,
- "affiliated": true
}
]Expire affiliations for a user from one or more subgroups by setting the expiration date to the current date. Only subgroups of the parent group can be expired. This maintains the affiliation history while marking them as no longer active.
Required Permissions (all required):
Important: This endpoint only works from a top-level group. Calling from a subgroup will return error: "Cannot directly update affiliations of a user in a subgroup"
| group_id required | integer <int64> The ID of the parent group (must be a top-level group) |
| user_id required | integer <int64> The ID of the user to expire affiliations for |
The ID of a subgroup whose affiliation should be expired.
[- 100,
- 200,
- 300
][- {
- "groupId": 100,
- "groupName": "subgroup-1",
- "expirationDate": "2026-02-18T00:00:00+00:00",
- "affiliated": false
}, - {
- "groupId": 200,
- "groupName": "subgroup-2",
- "expirationDate": "2026-02-18T00:00:00+00:00",
- "affiliated": false
}
]