added synchronous API calls for user/group functionalities
used some synchronous functions in the example