Modifica

privilegedAccessGroupAssignmentScheduleRequest: updateRequest

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.

Update a privilegedAccessGroupAssignmentScheduleRequest object with the result of a custom extension evaluation for a group membership or ownership assignment request.

Permissions

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.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) PrivilegedAssignmentSchedule.ReadWrite.AzureADGroup Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application PrivilegedAssignmentSchedule.ReadWrite.AzureADGroup Not available.

Important

For delegated access using work or school accounts, the signed-in user must be an owner or member of the group or be assigned a supported Microsoft Entra role or a custom role that grants the permissions required for this operation. This operation supports the following built-in roles, which provide only the least privilege necessary:

  • For role-assignable groups: Privileged Role Administrator
  • For non-role-assignable groups: Directory Writer, Groups Administrator, Identity Governance Administrator, or User Administrator

The role assignments for the calling user should be scoped at the directory level.

Other roles with permissions to manage groups (such as Exchange Administrators for non-role-assignable Microsoft 365 groups) and administrators with assignments scoped at administrative unit level can manage groups through groups API and override changes made in Microsoft Entra PIM through PIM for Groups APIs.

HTTP request

POST /identityGovernance/privilegedAccess/group/assignmentScheduleRequests/{privilegedAccessGroupAssignmentScheduleRequestId}/updateRequest

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, provide a JSON object with the following parameters.

Parameter Type Description
evaluationId String The unique identifier of the custom extension evaluation. Optional.
evaluationOutcome evaluationOutcome The result of the custom extension evaluation. The possible values are: approved, denied, unknownFutureValue. Optional.
reason String The reason for the evaluation outcome. Optional.
scheduleInfo requestSchedule The updated schedule for the group assignment. Optional.

Response

If successful, this action returns a 200 OK response code and a privilegedAccessGroupAssignmentScheduleRequest object in the response body.

Example

Request

The following example submits an approved custom extension evaluation.

POST https://graph.microsoft.com/beta/identityGovernance/privilegedAccess/group/assignmentScheduleRequests/f4b57a8c-da56-4ae0-8aef-65c3a043dab4/updateRequest
Content-Type: application/json

{
  "evaluationId": "d4e5f6a7-b8c9-4d0e-9f1a-2b3c4d5e6f7a",
  "evaluationOutcome": "approved",
  "reason": "The ticket information is valid.",
  "scheduleInfo": {
    "startDateTime": "2026-09-16T19:00:00Z",
    "expiration": {
      "type": "afterDuration",
      "duration": "PT8H"
    }
  }
}

Response

The following example shows the response. The response might be shortened for readability.

HTTP/1.1 200 OK
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.privilegedAccessGroupAssignmentScheduleRequest",
  "id": "f4b57a8c-da56-4ae0-8aef-65c3a043dab4",
  "status": "Granted",
  "action": "selfActivate",
  "principalId": "11bb11bb-cc22-dd33-ee44-55ff55ff55ff",
  "accessId": "member",
  "groupId": "55aa55aa-bb66-cc77-dd88-99ee99ee99ee",
  "justification": "Respond to the service incident"
}