Skip to main content

Get child group membership by group id

Log in to add to favourites

Gets the direct child group members of the group.

getChildGroupsByGroupId(groupId: string): Promise<PagedList<Group>>

Example

JavaScript
let groupId = "4b262379-5bbe-421e-a429-f6e2ab5a849b";

client.security.groups.getChildGroupsByGroupId(groupId)
    .then(result => {
        console.log('API call result: ', result);
    })
    .catch(error => {
        console.log('API call error: ', error);        
    });

Gets the direct child group members of the group.

getChildGroupsByGroupName(groupName: string): Promise<PagedList<Group>>

Example

JavaScript
let groupName = "Test Users";

client.security.groups.getChildGroupsByGroupName(groupName)
    .then(result => {
        console.log('API call result: ', result);
    })
    .catch(error => {
        console.log('API call error: ', error);        
    });

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