Example for direct parent groups
1
2
3
4
5
6
7
8
9
let userId = "4b262379-5bbe-421e-a429-f6e2ab5a849b";
client.security.users.getUserGroups(userId)
.then(result => {
console.log('API call result: ', result);
})
.catch(error => {
console.log('API call error: ', error);
});
Example for inherited parent groups
1
2
3
4
5
6
7
8
9
10
11
12
let options = {
userId: "4b262379-5bbe-421e-a429-f6e2ab5a849b",
includeInherited: true
};
client.security.users.getUserGroups(options)
.then(result => {
console.log('API call result: ', result);
})
.catch(error => {
console.log('API call error: ', error);
});