Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for VaultUser and VaultGroup permissions resources #295

Open
davecap opened this issue Mar 14, 2019 · 1 comment
Open

Add support for VaultUser and VaultGroup permissions resources #295

davecap opened this issue Mar 14, 2019 · 1 comment

Comments

@davecap
Copy link
Member

davecap commented Mar 14, 2019

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

  • VaultUser (/v2/vaults//users)
  • VaultGroup (/v2/vaults//users)
  • VaultCollaborator (/v2/vaults//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
@jsh2134
Copy link
Contributor

jsh2134 commented Jan 14, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants