[ideas] Please add command to unassign security role of user for the environment #680
sanjeev40084
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently we have command to assign security role for user, please also add command to unassign security role. We are admin for about 50 power platform environments and all my team members have SA role. One of my team member is moving to new team and his SA role needs to be removed. Currently we need to do one environment at a time :(
pac admin unassign-user -env [env-id] -u $upn -r [role-name]
I think the best approach will be to introduce new user attribute and have flag to assign and unassign roles something like this:
To assign role:
pac admin user -env [env-id] -u $upn -r [role-name] -assign
To unassign role:
pac admin user -env [env-id] -u $upn -r [role-name] -unassign
Beta Was this translation helpful? Give feedback.
All reactions