@@ -932,3 +932,81 @@ Content-type: application/json
932
932
"status": "Accepted"
933
933
}
934
934
```
935
+
936
+ ### Example 9: Request a package on behalf of a direct employee
937
+
938
+ The following example shows how a manager can request an access package assignment on behalf of their direct employee.
939
+
940
+ > [ !NOTE]
941
+ > The requestor (manager) is extracted from the token, and the target object is determined by the ` id ` of the direct employee who is receiving access.
942
+
943
+ #### Request
944
+
945
+ The following example shows a request.
946
+
947
+ <!-- {
948
+ "blockType": "request",
949
+ "name": "update_accesspackageassignmentrequest_request_behalf"
950
+ }-->
951
+ ``` http
952
+ POST https://graph.microsoft.com/v1.0/identityGovernance/entitlementManagement/assignmentRequests
953
+ Content-type: application/json
954
+
955
+ {
956
+ "assignment": {
957
+ "accessPackageId": "5b98f958-0dea-4a5b-836e-109dccbd530c",
958
+ "schedule": {
959
+ "startDateTime": null,
960
+ "stopDateTime": null
961
+ },
962
+ "assignmentPolicyId": "c5f7847f-83a8-4315-a754-d94a6f39b875",
963
+ "target": {
964
+ "displayName": "Idris Ibrahim",
965
+ "email": "IdrisIbrahim@woodgrovebank.com",
966
+ "objectId": "21aceaba-fe13-4e3b-aa8c-4c588d5e7387",
967
+ "subjectType": "user"
968
+ }
969
+ },
970
+ "justification": "Access for direct employee",
971
+ "requestType": "UserAdd",
972
+ "answers": []
973
+ }
974
+ ```
975
+
976
+ #### Response
977
+
978
+ The following example shows the response.
979
+
980
+ > ** Note:** The response object shown here might be shortened for readability. All the properties are returned from an actual call.
981
+
982
+ <!-- {
983
+ "blockType": "response",
984
+ "truncated": true,
985
+ "@odata.type": "microsoft.graph.accessPackageAssignmentRequest"
986
+ } -->
987
+
988
+ ``` http
989
+ HTTP/1.1 201 Created
990
+ Content-type: application/json
991
+
992
+ {
993
+ "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#identityGovernance/entitlementManagement/assignmentRequests/$entity",
994
+ "id": "445a3118-6bf2-4a19-94ad-5660295963fd",
995
+ "requestType": "userAdd",
996
+ "state": "submitted",
997
+ "status": "Accepted",
998
+ "createdDateTime": null,
999
+ "completedDateTime": null,
1000
+ "schedule": {
1001
+ "startDateTime": null,
1002
+ "recurrence": null,
1003
+ "expiration": {
1004
+ "endDateTime": null,
1005
+ "duration": null,
1006
+ "type": "notSpecified"
1007
+ }
1008
+ },
1009
+ "answers": [],
1010
+ "customExtensionCalloutInstances": []
1011
+ }
1012
+ ```
0 commit comments