solvebio-python icon indicating copy to clipboard operation
solvebio-python copied to clipboard

Add support for VaultUser and VaultGroup permissions resources

Open davecap opened this issue 6 years ago • 1 comments

The client currently supports the Vault resource but does not allow easy maintenance of permissions. The API has the following resources:

  • VaultUser (/v2/vaults/<ID>/users)
  • VaultGroup (/v2/vaults/<ID>/users)
  • VaultCollaborator (/v2/vaults/<ID>/collaborators)
    • A read-only view that shows all users with access to a vault, as well as their permission level

Proposal: add the following methods:

  • Vault.users() -> returns a list of VaultUser objects
  • Vault.add_user(user_id, role='read')
  • Vault.groups() -> returns a list of VaultGroup objects
  • Vault.add_group(group_id, role='read')
  • Vault.collaborators() -> returns a list of VaultCollaborator objects

davecap avatar Mar 14 '19 17:03 davecap

This was requested today for use in syncing permissions to a third-party system (specifically NGB)

jsh2134 avatar Jan 14 '21 14:01 jsh2134