CmdID

CmdID / PowerShell / Cmdlets / New

New-MgOauth2PermissionGrant

Create a delegated permission grant represented by an oAuth2PermissionGrant object. Microsoft Graph PowerShell reference

From the Microsoft Graph PowerShell reference 18 parameters Its page in the reference

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

Parameters

18 in the Microsoft Graph PowerShell reference
Show its 18 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.
-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.