Skip to main content

Get the child groups of a group

Log in to add to favourites
GET/api/security/groups/{groupIdentifier}/groups?order={order}&pageIndex={pageIndex}&pageSize={pageSize}&includeInherited={includeInherited}&zenQL={zenQL}&excludedGroups={excludedGroups}&includeSelf={includeSelf}

Parameters

NameParameter typeTypeFormatDescription
groupIdentifier(required)pathstringgroup identifier For convenience, Group resources can be referenced by using either the group name or id
orderquerystring-A comma-separated list of the field Ids to order the results by. Prefix field Id with - for descending order.
pageIndexquerynumberintegerThe index of the page.
pageSizequerynumberintegerThe number of results per page. The default is 25.
includeInheritedqueryboolean-Set to true in order to return the direct child groups and ALL the descendant groups
zenqlquerystring-ZenQL query to select the groups returned in the listing
excludedGroupsquerystring-A comma-separated list of group identifiers such as Guid ids or names whose children will be excluded from the returned values
includeSelfqueryboolean-Whether to include the group for which children are being requested in the returned groups

Responses

HTTP status codeReasonModel
200SuccessGroup
401UnauthorizedError
403ForbiddenError
404Group not foundError
500Internal server errorError

Examples

Get child groups for a group by Id

HTTP
GET: /api/security/groups/82f73a9b-2a13-4d63-bcc1-e8ee5047b01c/groups

Get child groups for a group by name

HTTP
GET: /api/security/groups/Paper%20Street%20Soap%20Company/groups

Get the first page of child groups and ALL descendant groups for a group, with page sizes of 10

HTTP
GET: /api/security/groups/Paper%20Street%20Soap%20Company/groups?pageIndex=0&pageSize=10&includeInherited=true

Get the first page of child groups and ALL descendant groups for a group, including the parent group, but only if they were created in the last seven days and excluding certain groups

HTTP
GET: /api/security/groups/Paper%20Street%20Soap%20Company/groups?includeInherited=true&zenQL=created>now(-7)&excludedGroups=0617b0ac-4dda-4279-b070-5930511c86e0,37394083-ff04-4ecb-b8ac-1f6e7a26c875&includeSelf=true

Remarks

Permissions

Member of System Administrators.

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request