Share via


Add-AllowedConsentPlans

Allows consent plans of the specified types to be created within the tenant.

Syntax

Default (Default)

Add-AllowedConsentPlans
    [-Types] <String[]>
    [[-ApiVersion] <String>]
    [<CommonParameters>]

Description

The Add-AllowedConsentPlans cmdlet allows the creation of consent plans of the specified types within the tenant. Note that this only impacts the types specified, all others will be unaffected. Use Get-Help Add-AllowedConsentPlans -Examples for more detail.

Examples

EXAMPLE 1

Add-AllowedConsentPlans -Types @("Internal", "Viral")

Parameters

-ApiVersion

The api version to call with. Default 2016-11-01

Parameter properties

Type:String
Default value:2019-05-01
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Types

The types of consent plans that should become allowed. Valid options are Internal, Viral.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.