Find User Groups
POST/groups-srv/graph/usergroups
This API call finds user groups using a graph filter to select the user groups you want and limit the fields you would like to retrieve.
Filter Syntax:
- Use attributes with prefix
object_to filter by user group properties - Use
object_groupIdsto filter by specific group IDs (array) - Use
object_groupOwnersto filter by group owners (array) - Supports MongoDB query syntax including equality, regex, comparison, and logical operators
Field Selection:
- Use the
fieldsarray to specify which fields to return - If
fieldsis not specified, all fields are returned - Available fields include:
groupId,groupName,groupType,parentId,groupOwner,customFields, etc.
Pagination and Sorting:
- Use
fromandsizefor pagination - Use
sortfieldanddescendingfor sorting results
Validation Rules:
- Filter object must be valid MongoDB query syntax
- Field names in
fieldsarray must be valid user group properties frommust be a non-negative integersizemust be a positive integer
Request
Responses
- 200
- 204
- 401
- 417
OK - User groups found matching the filter criteria
No Content - No user groups found matching the filter criteria
Unauthorized - Authentication failed or missing required scope
Expectation Failed - Invalid filter syntax or malformed request