Skip to content

[DSIP-93][API] Project add owner permissions to resource permissions, enable resource transfer to users, and modify and delete user logic #17706

@niumy0701

Description

@niumy0701

Search before asking

  • I had searched in the DSIP and found no similar DSIP.

Motivation

At present, the project does not support transferring users, please refer to the following issue #15925
Project permissions are associated with project creators, in order to decouple project creators from project permissions and increase project owner permissions;

Design Detail

  1. Front end:
    Add the "Grant Owner Permissions" button for authorization
Image
  1. Backend:
    (1) On the basis of the previous permissions, add the owner permission OWNER_PERMISSION=99 to have all permissions. Replace the project creator and modify the verification logic of the previous project creator
    (2) Transfer authorization logic before reusing permissions, transfer project permissions, increase owner permissions for target users, and revoke all permissions for source users; The source user and target user belong to the same tenant

Compatibility, Deprecation, and Migration Plan

The creator of the historical data creation project needs to add owner permissions

Test Plan

Modify test cases
When creating a project, the creator defaults to having owner's permissions
When deleting or editing a project, verify that the creator has been changed to verify the owner's permissions
When deleting a user, there is no need to verify whether the user is the project creator

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions