Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Commands - Add-PnPFlowOwner & Remove-PnPFlowOwner #3339

Closed
wants to merge 1 commit into from

Conversation

NishkalankBezawada
Copy link
Contributor

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

Fixes #3335

What is in this Pull Request ?

Added two new commands

Add-PnPFlowOwner

Assigns/updates permissions to a Power Automate flow

SYNTAX

Add-PnPFlowOwner [-Environment <PowerAutomateEnvironmentPipeBind>] [-Identity <PowerPlatformPipeBind>] [-User <String>] [-AsAdmin] [-RoleName <FlowUserRoleName>]

DESCRIPTION

This cmdlet assigns/updates permissions for a user to a power automate flow.

EXAMPLES

Example 1

$environment = Get-PnPPowerPlatformEnvironment
Add-PnPFlowOwner -environment $environment -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -RoleName CanEdit

Assigns the specified useremail with 'CanEdit' access level to the specified flow

Example 2

$environment = Get-PnPPowerPlatformEnvironment
Add-PnPFlowOwner -environment $environment -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04 -RoleName CanView

Assigns the specified user id with 'CanView' access level to the specified flow

Example 3

$environment = Get-PnPPowerPlatformEnvironment
Add-PnPFlowOwner -environment $environment -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04 -RoleName CanViewWithShare

Assigns the specified user id with 'CanViewWithShare' access level to the specified flow

Example 4

$environment = Get-PnPPowerPlatformEnvironment
Add-PnPFlowOwner -environment $environment -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin -RoleName CanEdit

Assigns the specified useremail with 'CanEdit' access level to the specified flow as admin

Remove-PnPFlowOwner

Removes owner permissions to a Power Automate flow

SYNTAX

Remove-PnPFlowOwner [-Environment <PowerAutomateEnvironmentPipeBind>] [-Identity <PowerPlatformPipeBind>] [-User <String>] [-AsAdmin] [-Force]

DESCRIPTION

This cmdlet removes owner permissions for a user to a power automate flow.

EXAMPLES

Example 1

$environment = Get-PnPPowerPlatformEnvironment
Remove-PnPFlowOwner -environment $environment -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com

Removes the specified user email with owner access level to the specified flow

Example 2

$environment = Get-PnPPowerPlatformEnvironment
Remove-PnPFlowOwner -environment $environment -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User 6844c04a-8ee7-40ad-af66-28f6e948cd04

Removes the specified user id with owner access level to the specified flow

Example 3

$environment = Get-PnPPowerPlatformEnvironment
Remove-PnPFlowOwner -environment $environment -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin

Removes the specified user email with owner access level to the specified flow as admin

Example 4

$environment = Get-PnPPowerPlatformEnvironment
Remove-PnPFlowOwner -environment $environment -Identity f07c34a9-a586-4e58-91fb-e7ea19741b61 -User username@tenant.onmicrosoft.com -AsAdmin -Force

Removes the specified user email with owner access level to the specified flow as admin, without confirmation

Summary

copilot:summary

Details

copilot:walkthrough

Thanks,
Nishkalank Bezawada

@NishkalankBezawada
Copy link
Contributor Author

Closing PR as i have targetted wrong branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] Add & Remove user as Flow Owner
1 participant