Skip to content

Minor Bug: Project User Management API 403 for user access PATCH #2502

@ChristopherFoerster

Description

@ChristopherFoerster

As you know we have a group based sync script in place. In some cases users are in multiple groups for read and write.

Therefore I iterate over groups in correct order read->write->admin and simply PATCH access

Bug: When patching a read user to write manager I get 403 Forbidden (but change is correctly done)

Reproduce:

  • add a user with read user access
  • patch via API /api/v1/projects/{project_slug}/users/{user_id} to manager write

The other way around works without error

  • add a user with manager write access
  • patch via API /api/v1/projects/{project_slug}/users/{user_id} to user read

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions