Partager via


Add-AllowedConsentPlans

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

Syntax

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

Type:String
Position:2
Default value:2019-05-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Types

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

Type:String[]
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False