Skip to content

Add new function to change scope of existing role assignment #382

@StorytellerCZ

Description

@StorytellerCZ

Add a new function that would accept userId, targetRole and newScope which would then go and change the scope of the assigned role to the newScope.
Right now if I want to just change scope I need to remove role and then add it again.
For use cases where user can be assigned the same role into multiple scopes, the function should fail if it finds more than one results or have an optional parameter to define the previous scope.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issueThis is an easy issue that beginners can tackle to get to know the code base.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions