Add new function to change scope of existing role assignment #382
Labels
enhancement
good first issue
This is an easy issue that beginners can tackle to get to know the code base.
Add a new function that would accept
userId
,targetRole
andnewScope
which would then go and change thescope
of the assigned role to thenewScope
.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?
The text was updated successfully, but these errors were encountered: