Search Results for

    Show / Hide Table of Contents
    Available in the current Nightly Release only.

    Remove-PnPPowerAppPermission

    SYNOPSIS

    Required Permissions

    • Azure: management.azure.com
    • PowerApps: service.powerapps.com
    • Microsoft Graph: User.Read.All, Group.Read.All

    Removes user, group and (Everyone in organization) permissions from a Power App

    SYNTAX

    Remove-PnPPowerAppPermission [-Environment <PowerAutomateEnvironmentPipeBind>] -Identity <PowerPlatformPipeBind> [-User <String>] [-Group <String>] [-Tenant] [-AsAdmin] [-Force] [-Verbose]
    

    DESCRIPTION

    This cmdlet removes user, group, or (Everyone in organization) permissions from a PowerApp using the -User, -Group, or -Tenant parameter. Only one of these parameters can be specified at a time, and at least one must be provided.

    EXAMPLES

    Example 1

    Remove-PnPPowerAppPermission -Identity 9b2f87e6-4c3d-48c0-a2b6-c1b4e3e57f0f -User username@tenant.onmicrosoft.com
    

    Removes the specified user permission from the specified PowerApp located in the default environment using user's UPN

    Example 2

    Remove-PnPPowerAppPermission -Identity 9b2f87e6-4c3d-48c0-a2b6-c1b4e3e57f0f -User 6844c04a-8ee7-40ad-af66-28f6e948cd04
    

    Removes the specified user permission from the specified PowerApp located in the default environment using user's Id

    Example 3

    Remove-PnPPowerAppPermission -Environment (Get-PnPPowerPlatformEnvironment -Identity "myenvironment") -Identity 9b2f87e6-4c3d-48c0-a2b6-c1b4e3e57f0f -User username@tenant.onmicrosoft.com -AsAdmin
    

    Removes the specified user permission from the specified PowerApp as an admin in the specified environment

    Example 4

    Remove-PnPPowerAppPermission -Environment (Get-PnPPowerPlatformEnvironment -Identity "myenvironment) -Identity 9b2f87e6-4c3d-48c0-a2b6-c1b4e3e57f0f -User username@tenant.onmicrosoft.com -AsAdmin -Force
    

    Removes the specified user permission from the specified PowerApp as admin, without asking for confirmation, in the specified environment

    Example 5

    Remove-PnPPowerAppPermission -Identity "3f4a2c1d-0e9d-4c1e-8b55-9e3c7f0ba7e2" -Group "c6c4b4e0-cd72-4d64-8ec2-cfbd0388ec16" -Force
    

    Removes the specified group's permission for the PowerApp without prompting using group id

    Example 6

    Remove-PnPPowerAppPermission -Identity "3f4a2c1d-0e9d-4c1e-8b55-9e3c7f0ba7e2" -Group "Finance Team"
    

    Removes the specified group's permission for the PowerApp using group's display name

    Example 7

    Remove-PnPPowerAppPermission -Identity "3f4a2c1d-0e9d-4c1e-8b55-9e3c7f0ba7e2" -Tenant
    

    Removes the (Everyone in organization) permission for the PowerApp using -Tenant parameter

    PARAMETERS

    -Environment

    The name of the Power Platform environment or an Environment instance. If omitted, the default environment will be used.

    Type: PowerPlatformEnvironmentPipeBind
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: The default environment
    Accept pipeline input: True
    Accept wildcard characters: False
    

    -Identity

    The Name, Id or instance of the PowerApp to remove the permissions from.

    Type: PowerPlatformPipeBind
    Parameter Sets: (All)
    Aliases:
    
    Required: True
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -User

    The user principal name or Id of the user to remove its permissions from the PowerApp.

    Type: String
    Parameter Sets: (All)
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Group

    The group display name or Id of the group to remove its permissions from the PowerApp.

    Type: String
    Parameter Sets: (All)
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Tenant

    The (Everyone in organization) permission to remove from the PowerApp

    Type: String
    Parameter Sets: (All)
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -AsAdmin

    If specified, the permission will be removed as an admin. If not specified only the Apps to which the current user already has access can be modified.

    Type: SwitchParameter
    Parameter Sets: (All)
    Aliases:
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    -Force

    Providing the Force parameter will skip the confirmation question.

    Type: SwitchParameter
    Parameter Sets: (All)
    
    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False
    

    RELATED LINKS

    Microsoft 365 Patterns and Practices

    Back to top Generated by DocFX spacer