Skip to content

Implement /v2 endpoints for user and access management #227

Closed

Description

@tomasMizera

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)

Activity

  1. linked a pull request that will close this issueProposal for new commands groups #228on Feb 10, 2025
  2. added this to the 0.10.0 milestone on Feb 10, 2025
  3. harminius commented on Feb 13, 2025

    @harminius
    Contributor

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

  4. tomasMizera commented on Feb 13, 2025

    @tomasMizera
    ContributorAuthor

    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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions