Aracılığıyla paylaş


Update-MgPolicyAdminConsentRequestPolicy

Update the properties of an adminConsentRequestPolicy object.

Note

To view the beta release of this cmdlet, view Update-MgBetaPolicyAdminConsentRequestPolicy

Syntax

Update-MgPolicyAdminConsentRequestPolicy
      [-ResponseHeadersVariable <String>]
      [-AdditionalProperties <Hashtable>]
      [-Id <String>]
      [-IsEnabled]
      [-NotifyReviewers]
      [-RemindersEnabled]
      [-RequestDurationInDays <Int32>]
      [-Reviewers <IMicrosoftGraphAccessReviewReviewerScope[]>]
      [-Version <Int32>]
      [-Headers <IDictionary>]
      [-ProgressAction <ActionPreference>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Update-MgPolicyAdminConsentRequestPolicy
      -BodyParameter <IMicrosoftGraphAdminConsentRequestPolicy>
      [-ResponseHeadersVariable <String>]
      [-Headers <IDictionary>]
      [-ProgressAction <ActionPreference>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

Update the properties of an adminConsentRequestPolicy object.

Permissions

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) Policy.ReadWrite.ConsentRequest Directory.ReadWrite.All
Delegated (personal Microsoft account) Not supported. Not supported.
Application Policy.ReadWrite.ConsentRequest Directory.ReadWrite.All

Parameters

-AdditionalProperties

Additional Parameters

Type:Hashtable
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-BodyParameter

adminConsentRequestPolicy To construct, see NOTES section for BODYPARAMETER properties and create a hash table.

Type:IMicrosoftGraphAdminConsentRequestPolicy
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Headers

Optional headers that will be added to the request.

Type:IDictionary
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Id

The unique identifier for an entity. Read-only.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IsEnabled

Specifies whether the admin consent request feature is enabled or disabled. Required.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-NotifyReviewers

Specifies whether reviewers will receive notifications. Required.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ProgressAction

{{ Fill ProgressAction Description }}

Type:ActionPreference
Aliases:proga
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RemindersEnabled

Specifies whether reviewers will receive reminder emails. Required.

Type:SwitchParameter
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RequestDurationInDays

Specifies the duration the request is active before it automatically expires if no decision is applied.

Type:Int32
Position:Named
Default value:0
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ResponseHeadersVariable

Optional Response Headers Variable.

Type:String
Aliases:RHV
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Reviewers

The list of reviewers for the admin consent. Required. To construct, see NOTES section for REVIEWERS properties and create a hash table.

Type:IMicrosoftGraphAccessReviewReviewerScope[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Version

Specifies the version of this policy. When the policy is updated, this version is updated. Read-only.

Type:Int32
Position:Named
Default value:0
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAdminConsentRequestPolicy

System.Collections.IDictionary

Outputs

Microsoft.Graph.PowerShell.Models.IMicrosoftGraphAdminConsentRequestPolicy

Notes

COMPLEX PARAMETER PROPERTIES

To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.

BODYPARAMETER <IMicrosoftGraphAdminConsentRequestPolicy>: adminConsentRequestPolicy

  • [(Any) <Object>]: This indicates any property can be added to this object.
  • [Id <String>]: The unique identifier for an entity. Read-only.
  • [IsEnabled <Boolean?>]: Specifies whether the admin consent request feature is enabled or disabled. Required.
  • [NotifyReviewers <Boolean?>]: Specifies whether reviewers will receive notifications. Required.
  • [RemindersEnabled <Boolean?>]: Specifies whether reviewers will receive reminder emails. Required.
  • [RequestDurationInDays <Int32?>]: Specifies the duration the request is active before it automatically expires if no decision is applied.
  • [Reviewers <IMicrosoftGraphAccessReviewReviewerScope- []>]: The list of reviewers for the admin consent. Required.
    • [Query <String>]: The query specifying who will be the reviewer.
    • [QueryRoot <String>]: In the scenario where reviewers need to be specified dynamically, this property is used to indicate the relative source of the query. This property is only required if a relative query, for example, ./manager, is specified. Possible value: decisions.
    • [QueryType <String>]: The type of query. Examples include MicrosoftGraph and ARM.
  • [Version <Int32?>]: Specifies the version of this policy. When the policy is updated, this version is updated. Read-only.

REVIEWERS <IMicrosoftGraphAccessReviewReviewerScope- []>: The list of reviewers for the admin consent. Required.

  • [Query <String>]: The query specifying who will be the reviewer.
  • [QueryRoot <String>]: In the scenario where reviewers need to be specified dynamically, this property is used to indicate the relative source of the query. This property is only required if a relative query, for example, ./manager, is specified. Possible value: decisions.
  • [QueryType <String>]: The type of query. Examples include MicrosoftGraph and ARM.