Skip to main content

Check a group has a user member

Log in to add to favourites

Remarks

Example

JAVASCRIPT
1
2
3
4
5
6
7
8
9
const groupId = "89CEE207-6F12-4D27-8693-B7693766A82D"; const userId = "F8B27A8F-F1E5-48EF-A5E6-19A791030C0A"; client.security.groups.hasUser(groupId, userId) .then(result => { console.log('API call result: ', result); }) .catch(error => { console.log('API call error: ', error); });

Remarks

Examples

JAVASCRIPT
1
2
3
4
5
6
7
8
9
const userId = "0E2879B8-FA05-4291-BC99-035259B1CE61"; const groupId = "89CEE207-6F12-4D27-8693-B7693766A82D"; client.security.users.userIsMemberOf(userId, groupId) .then(result => { console.log('API call result: ', result); }) .catch(error => { console.log('API call error: ', error); });
JAVASCRIPT
1
2
3
4
5
6
7
8
9
const userId = "0E2879B8-FA05-4291-BC99-035259B1CE61"; const groupIds = ["89CEE207-6F12-4D27-8693-B7693766A82D", "2E86F729-9632-4D87-B38F-DF017F90B5CC"]; client.security.users.userIsMemberOf(userId, groupIds) .then(result => { console.log('API call result: ', result); }) .catch(error => { console.log('API call error: ', error); });

Still need help?

New support request