CmdID / PowerShell / Cmdlets / Update
Update-MgOauth2PermissionGrant
Update the properties of oAuth2PermissionGrant object, representing a delegated permission grant. Microsoft Graph PowerShell reference
From the Microsoft Graph PowerShell reference 20 parameters Its page in the reference
Parameters
Show its 20 parameters
-AdditionalPropertiesAdditional Parameters-BodyParameteroAuth2PermissionGrant To construct, see NOTES section for BODYPARAMETER properties and create a hash table.-BreakWait for .NET debugger to attach-ClientIdThe object id (not appId) of the client service principal for the application that's authorized to act on behalf of a signed-in user when accessing an API.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-ConsentTypeIndicates if authorization is granted for the client application to impersonate all users or only a specific user.-HeadersOptional headers that will be added to the request.-HttpPipelineAppendSendAsync Pipeline Steps to be appended to the front of the pipeline-HttpPipelinePrependSendAsync Pipeline Steps to be prepended to the front of the pipeline-IdThe unique identifier for an entity.-InputObjectIdentity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.-OAuth2PermissionGrantIdThe unique identifier of oAuth2PermissionGrant-PrincipalIdThe id of the user on behalf of whom the client is authorized to access the resource, when consentType is Principal.-ProxyThe URI for the proxy server to use-ProxyCredentialCredentials for a proxy server to use for the remote call-ProxyUseDefaultCredentialsUse the default credentials for the proxy-ResourceIdThe id of the resource service principal to which access is authorized.-ResponseHeadersVariable, -RHVOptional Response Headers Variable.-ScopeA space-separated list of the claim values for delegated permissions that should be included in access tokens for the resource application (the API).-WhatIf, -wiRuns the command in a mode that only reports what would happen without performing the actions.