Skip to content

Implement /v2 endpoints for user and access management #227

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

Closed
tomasMizera opened this issue Jan 17, 2025 · 2 comments · Fixed by #231
Closed

Implement /v2 endpoints for user and access management #227

tomasMizera opened this issue Jan 17, 2025 · 2 comments · Fixed by #231
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@tomasMizera
Copy link
Contributor

tomasMizera commented Jan 17, 2025

As a followup after https://github.com/MerginMaps/roadmap/issues/60

Let's implement the new endpoints to allow users manage accounts and access in a workspace.


Py-API methods

These will become deprecated (in the 2nd phase), alongside their CLI commands:

  • add_user_permissions_to_project
  • remove_user_permissions_from_project

We want to add these:

User creation

  • create_user

Projects API

  • list_project_collaborators
  • add_project_collaborator
  • update_project_collaborator - (user_id: int) -> void
  • remove_project_collaborator

Workspaces API

  • list_workspace_members
  • get_workspace_member
  • add_workspace_member
  • update_workspace_member
  • remove_workspace_member

Process:

  1. implement py-client API + tests
  2. implement CLI (Adjust CLI to reflect /v2 management endpoints & subgroups #229)
@harminius
Copy link
Contributor

Do we have add_workspace_member, @tomasMizera ? I can't find POST in /v2/workspaces/{id}/members 😅

@tomasMizera
Copy link
Contributor Author

We don't @harminius - ppl can create new users through the user creation API. Otherwise they need to work with invitations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants