Skip to content

Meta: Organizations roles permissions bugs #18102

@di

Description

@di

Currently PyPI has a split permissions model for projects and organizations: a user may have a role on one or both depending on certain circumstances.

The general intent with ownership is that projects are either owned by users or by an organization. This means that the Project Owner role (and the Project Maintainer role) are mutually exclusive with the Organization Owner role.

This model is somewhat buggy. Some related issues:

  • 'Sole maintainership' checks do not take into existing account organization roles (Org-owned projects: Cannot remove yourself as Sole Owner #15095)
  • The removal of the Project Owner role is surprising for the transferring user and should be more clearly explained (Temporarily lost acces to package while transfering to organisation. #13558)
  • When transferring a project to an organization, only the transferring users loses the Project Owner role, not other Project Owners who are also existing Organization Owners.
  • When adding a user as an Organization Owner, their roles in organization-owned projects are not removed which results in a violation of the mutual exclusivity of Project Owner and Organization Owner roles.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions