Generates a URI for an accessReviewHistoryInstance object the status for which is done. Each URI can be used to retrieve the instance's review history data. Each URI is valid for 24 hours and can be retrieved by fetching the downloadUri property from the accessReviewHistoryInstance object.
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)
AccessReview.ReadWrite.All
Delegated (personal Microsoft account)
Not supported.
Application
AccessReview.ReadWrite.All
For delegated scenarios, the signed-in user must have one of the following Azure AD roles.
Write access reviews of a group or app
Write access reviews of an Azure AD role
User Administrator Identity Governance Administrator Global Administrator
Identity Governance Administrator Privileged Role Administrator Global Administrator
The creator of the review history definition can also generate the download link.
HTTP request
POST /identityGovernance/accessReviews/historyDefinitions/{accessReviewHistoryDefinitionId}/instances/{accessReviewHistoryInstanceId}/generateDownloadUri
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 an accessReviewHistoryInstances in the response body.
POST https://graph.microsoft.com/v1.0/identityGovernance/accessReviews/historyDefinitions/b2cb022f-b7e1-40f3-9854-c65a40861c38/instances/b2cb022f-b7e1-40f3-9854-c65a40861c38/generateDownloadUri
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var result = await graphClient.IdentityGovernance.AccessReviews.HistoryDefinitions["{accessReviewHistoryDefinition-id}"].Instances["{accessReviewHistoryInstance-id}"].GenerateDownloadUri.PostAsync();
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc identity-governance access-reviews history-definitions instances generate-download-uri post --access-review-history-definition-id {accessReviewHistoryDefinition-id} --access-review-history-instance-id {accessReviewHistoryInstance-id}
<?php
// THIS SNIPPET IS A PREVIEW VERSION OF THE SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$result = $graphServiceClient->identityGovernance()->accessReviews()->historyDefinitions()->byAccessReviewHistoryDefinitionId('accessReviewHistoryDefinition-id')->instances()->byAccessReviewHistoryInstanceId('accessReviewHistoryInstance-id')->generateDownloadUri()->post()->wait();
# THE PYTHON SDK IS IN PREVIEW. FOR NON-PRODUCTION USE ONLY
graph_client = GraphServiceClient(request_adapter)
result = await graph_client.identity_governance.acce_reviews.history_definitions.by_history_definition_id('accessReviewHistoryDefinition-id').instances.by_instance_id('accessReviewHistoryInstance-id').generate_download_uri.post()