fix api for get users and groups