Namespace: microsoft.graph
Wichtig
Die APIs unter der /beta Version in Microsoft Graph können sich ändern. Die Verwendung dieser APIs in Produktionsanwendungen wird nicht unterstützt. Um festzustellen, ob eine API in v1.0 verfügbar ist, verwenden Sie die Version Selektor.
Ermöglicht es Prüfern, und applyResultapplyDescription für alle accessReviewInstanceDecisionItem-Objekte in Batches mithilfe von customDataProvidedResourceId festzulegen.
HINWEIS: Die zugriffsüberprüfungs-instance muss sich in einem Applying Zustand befinden.
Diese API ist in den folgenden nationalen Cloudbereitstellungen verfügbar.
| Weltweiter Service |
US Government L4 |
US Government L5 (DOD) |
China, betrieben von 21Vianet |
| ✅ |
❌ |
❌ |
❌ |
Berechtigungen
Wählen Sie die Berechtigungen aus, die für diese API als am wenigsten privilegiert markiert sind. Verwenden Sie eine höhere Berechtigung oder Berechtigungen nur, wenn Ihre App dies erfordert. Ausführliche Informationen zu delegierten Berechtigungen und Anwendungsberechtigungen finden Sie unter Berechtigungstypen. Weitere Informationen zu diesen Berechtigungen finden Sie in der Berechtigungsreferenz.
| Berechtigungstyp |
Berechtigung mit den geringsten Rechten |
Berechtigungen mit höheren Berechtigungen |
| Delegiert (Geschäfts-, Schul- oder Unikonto) |
AccessReview.ReadWrite.All |
Nicht verfügbar. |
| Delegiert (persönliches Microsoft-Konto) |
Nicht unterstützt |
Nicht unterstützt |
| Application |
AccessReview.ReadWrite.All |
Nicht verfügbar. |
Wichtig
Für den delegierten Zugriff mithilfe von Geschäfts-, Schul- oder Unikonten muss dem angemeldeten Benutzer eine unterstützte Microsoft Entra Rolle oder eine benutzerdefinierte Rolle zugewiesen werden, die die für diesen Vorgang erforderlichen Berechtigungen gewährt. Dieser Vorgang unterstützt die folgenden integrierten Rollen, die nur die geringsten Berechtigungen bereitstellen:
- So schreiben Sie Zugriffsüberprüfungen für eine Gruppe oder App: Benutzeradministrator, Identity Governance-Administrator
- So schreiben Sie Zugriffsüberprüfungen für eine Microsoft Entra Rolle: Identity Governance-Administrator, Administrator für privilegierte Rollen
HTTP-Anforderung
POST /identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinitionId}/instances/{accessReviewInstanceId}/batchApplyCustomDataProvidedResourceDecisions
| Name |
Beschreibung |
| Authorization |
Bearer {token}. Erforderlich. Erfahren Sie mehr über Authentifizierung und Autorisierung. |
| Content-Type |
application/json. Erforderlich. |
| x-accessreviews-version |
vNext. Erforderlich. |
Anforderungstext
Geben Sie im Anforderungstext eine JSON-Darstellung der Parameter an.
In der folgenden Tabelle sind die Parameter aufgeführt, wenn Sie diese Aktion aufrufen.
| Parameter |
Typ |
Beschreibung |
| applyResult |
accessReviewInstanceDecisionItemApplyResult |
Der applyResult für die Entität, die überprüft wird. Mögliche Werte sind: new, appliedSuccessfully, appliedWithUnknownFailure, appliedSuccessfullyButObjectNotFound, applyNotSupported. Erforderlich. |
| applyDescription |
Zeichenfolge |
Wenn angegeben, eine Beschreibung für .applyResult Optional. |
| customDataProvidedResourceId |
Zeichenfolge |
Die applyResult wird für alle accessReviewInstanceDecisionItems festgelegt, deren benutzerdefinierte Daten bereitgestellte Ressource id mit der angegebenen customDataProvidedResourceId übereinstimmt. Erforderlich. |
Antwort
Wenn die Aktion erfolgreich verläuft, wird der Antwortcode 202 Accepted zurückgegeben.
Beispiele
Anforderung
Das folgende Beispiel zeigt eine Anfrage.
POST https://graph.microsoft.com/beta/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinitionId}/instances/{accessReviewInstanceId}/batchApplyCustomDataProvidedResourceDecisions
Content-Type: application/json
{
"applyResult": "appliedSuccessfully",
"applyDescription": "Access was removed from production application: GitHub-app.",
"customDataProvidedResourceId": "5c728447-be5c-4565-b4d3-cb248b609891"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.IdentityGovernance.AccessReviews.Definitions.Item.Instances.Item.BatchApplyCustomDataProvidedResourceDecisions;
using Microsoft.Graph.Beta.Models;
var requestBody = new BatchApplyCustomDataProvidedResourceDecisionsPostRequestBody
{
ApplyResult = AccessReviewInstanceDecisionItemApplyResult.AppliedSuccessfully,
ApplyDescription = "Access was removed from production application: GitHub-app.",
CustomDataProvidedResourceId = "5c728447-be5c-4565-b4d3-cb248b609891",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.IdentityGovernance.AccessReviews.Definitions["{accessReviewScheduleDefinition-id}"].Instances["{accessReviewInstance-id}"].BatchApplyCustomDataProvidedResourceDecisions.PostAsync(requestBody);
// Code snippets are only available for the latest major version. Current major version is $v0.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
graphidentitygovernance "github.com/microsoftgraph/msgraph-beta-sdk-go/identitygovernance"
graphmodels "github.com/microsoftgraph/msgraph-beta-sdk-go/models"
//other-imports
)
requestBody := graphidentitygovernance.NewBatchApplyCustomDataProvidedResourceDecisionsPostRequestBody()
applyResult := graphmodels.APPLIEDSUCCESSFULLY_ACCESSREVIEWINSTANCEDECISIONITEMAPPLYRESULT
requestBody.SetApplyResult(&applyResult)
applyDescription := "Access was removed from production application: GitHub-app."
requestBody.SetApplyDescription(&applyDescription)
customDataProvidedResourceId := "5c728447-be5c-4565-b4d3-cb248b609891"
requestBody.SetCustomDataProvidedResourceId(&customDataProvidedResourceId)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.IdentityGovernance().AccessReviews().Definitions().ByAccessReviewScheduleDefinitionId("accessReviewScheduleDefinition-id").Instances().ByAccessReviewInstanceId("accessReviewInstance-id").BatchApplyCustomDataProvidedResourceDecisions().Post(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.beta.identitygovernance.accessreviews.definitions.item.instances.item.batchapplycustomdataprovidedresourcedecisions.BatchApplyCustomDataProvidedResourceDecisionsPostRequestBody batchApplyCustomDataProvidedResourceDecisionsPostRequestBody = new com.microsoft.graph.beta.identitygovernance.accessreviews.definitions.item.instances.item.batchapplycustomdataprovidedresourcedecisions.BatchApplyCustomDataProvidedResourceDecisionsPostRequestBody();
batchApplyCustomDataProvidedResourceDecisionsPostRequestBody.setApplyResult(AccessReviewInstanceDecisionItemApplyResult.AppliedSuccessfully);
batchApplyCustomDataProvidedResourceDecisionsPostRequestBody.setApplyDescription("Access was removed from production application: GitHub-app.");
batchApplyCustomDataProvidedResourceDecisionsPostRequestBody.setCustomDataProvidedResourceId("5c728447-be5c-4565-b4d3-cb248b609891");
graphClient.identityGovernance().accessReviews().definitions().byAccessReviewScheduleDefinitionId("{accessReviewScheduleDefinition-id}").instances().byAccessReviewInstanceId("{accessReviewInstance-id}").batchApplyCustomDataProvidedResourceDecisions().post(batchApplyCustomDataProvidedResourceDecisionsPostRequestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const batchApplyCustomDataProvidedResourceDecisions = {
applyResult: 'appliedSuccessfully',
applyDescription: 'Access was removed from production application: GitHub-app.',
customDataProvidedResourceId: '5c728447-be5c-4565-b4d3-cb248b609891'
};
await client.api('/identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinitionId}/instances/{accessReviewInstanceId}/batchApplyCustomDataProvidedResourceDecisions')
.version('beta')
.post(batchApplyCustomDataProvidedResourceDecisions);
<?php
use Microsoft\Graph\Beta\GraphServiceClient;
use Microsoft\Graph\Beta\Generated\IdentityGovernance\AccessReviews\Definitions\Item\Instances\Item\BatchApplyCustomDataProvidedResourceDecisions\BatchApplyCustomDataProvidedResourceDecisionsPostRequestBody;
use Microsoft\Graph\Beta\Generated\Models\AccessReviewInstanceDecisionItemApplyResult;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new BatchApplyCustomDataProvidedResourceDecisionsPostRequestBody();
$requestBody->setApplyResult(new AccessReviewInstanceDecisionItemApplyResult('appliedSuccessfully'));
$requestBody->setApplyDescription('Access was removed from production application: GitHub-app.');
$requestBody->setCustomDataProvidedResourceId('5c728447-be5c-4565-b4d3-cb248b609891');
$graphServiceClient->identityGovernance()->accessReviews()->definitions()->byAccessReviewScheduleDefinitionId('accessReviewScheduleDefinition-id')->instances()->byAccessReviewInstanceId('accessReviewInstance-id')->batchApplyCustomDataProvidedResourceDecisions()->post($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.identitygovernance.accessreviews.definitions.item.instances.item.batch_apply_custom_data_provided_resource_decisions.batch_apply_custom_data_provided_resource_decisions_post_request_body import BatchApplyCustomDataProvidedResourceDecisionsPostRequestBody
from msgraph_beta.generated.models.access_review_instance_decision_item_apply_result import AccessReviewInstanceDecisionItemApplyResult
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = BatchApplyCustomDataProvidedResourceDecisionsPostRequestBody(
apply_result = AccessReviewInstanceDecisionItemApplyResult.AppliedSuccessfully,
apply_description = "Access was removed from production application: GitHub-app.",
custom_data_provided_resource_id = "5c728447-be5c-4565-b4d3-cb248b609891",
)
await graph_client.identity_governance.access_reviews.definitions.by_access_review_schedule_definition_id('accessReviewScheduleDefinition-id').instances.by_access_review_instance_id('accessReviewInstance-id').batch_apply_custom_data_provided_resource_decisions.post(request_body)
Antwort
Das folgende Beispiel zeigt die Antwort.
Hinweis: Das hier gezeigte Antwortobjekt kann zur besseren Lesbarkeit gekürzt werden.
HTTP/1.1 202 Accepted