Groups
A group is a collection of users that can be granted permissions to a Dataset. Similar to granting permissions to individual users, a group can be granted read-only or read-write access to a dataset. When applied, all users in that group will gain access.
Admins can view and manipulate all groups. Privileged users can create and manipulate groups of which they are a member. All users can see what groups they belong to.
Managing Groups
Methods to manage groups are part of the hoss.auth.AuthService class.
hoss.auth.AuthService.get_groupis used to retrieve a group and its membershoss.auth.AuthService.create_groupwill create a new, empty grouphoss.auth.AuthService.delete_groupwill delete a group. This will remove all permissions granted by this group for all of its membershoss.auth.AuthService.add_user_to_groupwill add a user to the group and apply all permissions the group grantedhoss.auth.AuthService.remove_user_from_groupwill remove a user from a group and revoke their access from all permissions the group granted.