Search Results for

    Show / Hide Table of Contents

    Set-PnPPowerAppByPassConsent

    SYNOPSIS

    Required Permissions

    • Azure: management.azure.com

    Sets the consent bypass flag of a Power Apps for a given environment

    SYNTAX

    Set-PnPPowerAppByPassConsent [-Environment <PowerPlatformEnvironmentPipeBind>] [-Identity <PowerAppPipeBind> -ByPassConsent <Boolean>] 
    [-Connection <PnPConnection>] [-Verbose]
    

    DESCRIPTION

    This command can be used to set the bypassConsent flag of an PowerApps to true or false. Set the value as true so users aren't required to authorize API connections for the targeted app. To Remove the consent set the value false so users are required to authorize API connections for the targeted app

    EXAMPLES

    Example 1

    Set-PnPPowerAppByPassConsent -Environment (Get-PnPPowerPlatformEnvironment -Identity "myenvironment") -Identity fba63225-baf9-4d76-86a1-1b42c917a182 -ByPassConsent true
    

    This sets the bypassConsent flag on the specified Power App in the provided environment to true

    Example 2

    Set-PnPPowerAppByPassConsent -Identity fba63225-baf9-4d76-86a1-1b42c917a182 -ByPassConsent false
    

    This sets the bypassConsent flag on the specified Power App in the default environment

    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 Id of the app to retrieve.

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

    -ByPassConsent

    The value to set for the bypassConsent flag of the app.

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

    -Connection

    Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

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

    -Verbose

    When provided, additional debug statements will be shown while executing the cmdlet.

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

    RELATED LINKS

    Set-AdminPowerAppApisToBypassConsent Clear-AdminPowerAppApisToBypassConsent Microsoft 365 Patterns and Practices

    Back to top Generated by DocFX spacer