Skip to main content
Browse Documentation

Get group user membership by group id

Created by Alex Pop on 04 Aug 2020

Gets the users as direct members of the group.

getUsersByGroupId(groupId: string): Promise<PagedList<User>>

Example

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

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

Gets the users as direct members of the group.

getUsersByGroupName(groupName: string): Promise<PagedList<User>>

Example

let groupName = "Test Users";

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