How can I check if a user is member of a specific group?

In order to check a user's membership to a specific group you can use the webservice findByProperties of vusermanager. Before invoking the webservice make sure you have the username of the user (usually name.surname) and the identification number of the group (groupId) which can be found using findGroupsByProperties; if you have these information you can set the parameters "username" and "linkedGroupIds". If there is a match, you will find it in the response, if there is no match the service will return "totalResults:0".

Was this article helpful?
2 out of 2 found this helpful

Have any question?

Open a ticket