impactedResource: reactivate
Namespace: microsoft.graph
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Reactivate an accidentally dismissed, completed, or postponed impactedResource object. This action updates the status of the resource to active
. This method is relevant only if the status of the impactedResource object is dismissed
, postponed
, or completedByUser
.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | DirectoryRecommendations.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | DirectoryRecommendations.ReadWrite.All |
For delegated scenarios, the admin needs one of the following Azure AD roles:
- Global administrator
- Security administrator
- Security operator
- Application administrator
- Cloud application administrator
HTTP request
POST /directory/recommendations/{recommendationId}/impactedResources/{impactedResourceId}/reactivate
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this action returns a 200 OK
response code and a impactedResource in the response body.
Examples
Request
The following is an example of a request.
POST https://graph.microsoft.com/beta/directory/recommendations/0cb31920-84b9-471f-a6fb-468c1a847088_Microsoft.Identity.IAM.Insights.ApplicationCredentialExpiry/impactedResources/dbd9935e-15b7-4800-9049-8d8704c23ad2/reactivate
Response
The following is an example of the response
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#impactedResource",
"@odata.type": "#microsoft.graph.impactedResource",
"id": "dbd9935e-15b7-4800-9049-8d8704c23ad2",
"subjectId": "f9c3466a-9cb5-46ee-84db-e7e6e405b937",
"recommendationId": "7918d4b5-0442-4a97-be2d-36f9f9962ece_Microsoft.Identity.IAM.Insights.ApplicationCredentialExpiry",
"resourceType": "app",
"addedDateTime": "2022-03-19T09:40:39.0420371Z",
"postponeUntilDateTime": null,
"lastModifiedDateTime": "2022-04-04T20:43:28.9687029Z",
"lastModifiedBy": "b5fa65db-0d2b-4233-8788-ab0213567669",
"displayName": "Contoso IWA App Tutorial",
"owner": null,
"rank": 1,
"portalUrl": "https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationMenuBlade/Credentials/appId/ f9c3466a-9cb5-46ee-84db-e7e6e405b937",
"apiUrl": null,
"status": "active",
"additionalDetails": [
{
"key": "ExpiringCredentialsCount",
"value": "1"
}
]
}
Feedback
Submit and view feedback for