title | description | author | ms.localizationpriority | ms.subservice | doc_type |
---|---|---|---|---|---|
Update adminConsentRequestPolicy |
Update the properties of an adminConsentRequestPolicy object. |
eringreenlee |
medium |
entra-id-governance |
apiPageType |
Namespace: microsoft.graph
Update the properties of an adminConsentRequestPolicy object.
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
For delegated scenarios, the calling user needs to belong to at least the Application Administrator or Cloud Application Administrator Microsoft Entra roles.
PUT /policies/adminConsentRequestPolicy
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Content-Type | application/json. Required. |
In the request body, supply a JSON representation of the adminConsentRequestPolicy object.
The following table shows the properties that are required when you update the adminConsentRequestPolicy.
Property | Type | Description |
---|---|---|
isEnabled | Boolean | Specifies whether the admin consent request feature is enabled or disabled. |
notifyReviewers | Boolean | Specifies whether reviewers will receive notifications. |
remindersEnabled | Boolean | Specifies whether reviewers will receive reminder emails. |
requestDurationInDays | Int32 | Specifies the duration the request is active before it automatically expires if no decision is applied. |
reviewers | accessReviewReviewerScope collection | The list of reviewers for the admin consent. |
If successful, this method returns a 204 No content
response code and an updated adminConsentRequestPolicy object in the response body.
PUT https://graph.microsoft.com/v1.0/policies/adminConsentRequestPolicy
Content-Type: application/json
{
"isEnabled": true,
"notifyReviewers": true,
"remindersEnabled": true,
"requestDurationInDays": 5,
"reviewers": [
{
"query": "/users/b6879be8-fb87-4482-a72e-18445d2b5c54",
"queryType": "MicrosoftGraph"
},
{
"query": "/users/b3427cc5-bf69-4dcd-95f7-ed1eb432f5e9",
"queryType": "MicrosoftGraph"
}
]
}
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
HTTP/1.1 204 No Content
Content-Type: text/plain