OAuth2PermissionGrant_Create
POST /{tenantID}/oauth2PermissionGrants
Changed onGrants OAuth2 permissions for the relevant resource Ids of an app.
Request
- Base URLhttps://graph.windows.net
- AuthOAuth 2Implicithttps://login.microsoftonline.com/common/oauth2/authorizeScopesuser_impersonation
Path parameters
tenantIDstring required
The tenant ID.
Query parameters
api-versionstring required
Client API version.
Request body
Example request
{
"odata.type": "odata.type",
"resourceId": "resourceId",
"clientId": "clientId",
"scope": "scope",
"expiryTime": "expiryTime",
"consentType": "consentType",
"principalId": "",
"startTime": "startTime"
}Response
OK. The operation was successful.
Example response
{
"odata.type": "odata.type",
"resourceId": "resourceId",
"clientId": "clientId",
"scope": "scope",
"expiryTime": "expiryTime",
"consentType": "consentType",
"principalId": "",
"startTime": "startTime"
}Changes
- info
api operation id
OAuth2_Grantremoved and replaced withOAuth2PermissionGrant_Create - info
api tag
OAuth2PermissionGrant_Createadded - info
api tag
OAuth2Permissions_Grantremoved
- info
- info
api operation id
OAuth2PermissionGrant_Createremoved and replaced withOAuth2_Grant - info
api tag
OAuth2Permissions_Grantadded - info
api tag
OAuth2PermissionGrant_Createremoved
- info