New Commandlets : Add-PnPFlowOwner & Remove-PnPFlowOwner #3343
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type
Related Issues?
Fixes #3335
What is in this Pull Request ?
Added to new commands
Add-PnPFlowOwner
Remove-PnPFlowOwner
Add-PnPFlowOwner
Assigns/updates permissions to a Power Automate flow
Syntax
Example 1
Assigns the specified useremail with 'CanEdit' access level to the specified flow
Example 2
Assigns the specified user id with 'CanView' access level to the specified flow
Example 3
Assigns the specified user id with 'CanViewWithShare' access level to the specified flow
Example 4
Assigns the specified useremail with 'CanEdit' access level to the specified flow as admin
PARAMETERS
-Environment
The name of the Power Platform environment or an Environment object to retrieve the available flows for.
-Identity
The Name/Id of the flow to retrieve.
-User
Returns the user with the provided user id or username.
-RoleName
Allows specifying the type of access levels with which user should be added to the flow . Valid values: CanView, CanViewWithShare, CanEdit.
-AsAdmin
If specified returns all the flows as admin. If not specified only the flows for the current user will be returned.
Remove-PnPFlowOwner
Removes owner permissions to a Power Automate flow
Syntax
Description
This cmdlet removes owner permissions for a user to a power automate flow.
Example 1
Removes the specified user email with owner access level to the specified flow
Example 2
Removes the specified user id with owner access level to the specified flow
Example 3
Removes the specified user email with owner access level to the specified flow as admin
Example 4
Removes the specified user email with owner access level to the specified flow as admin, without confirmation
Parameters
-Environment
The name of the Power Platform environment or an Environment object to retrieve the available flows for.
-Identity
The Name/Id of the flow to retrieve.
-User
Returns the user with the provided user id or username.
-AsAdmin
If specified returns all the flows as admin. If not specified only the flows for the current user will be returned.
-Force
Specifying the Force parameter will skip the confirmation question.
Summary
copilot:summary
Details
copilot:walkthrough
Thanks,
Nishkalank Bezawada