accessPackageAssignment: filterByCurrentUser
Namespace: microsoft.graph
In Azure AD Entitlement Management, retrieve a list of accessPackageAssignment objects filtered on the signed-in user.
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) | EntitlementManagement.Read.All, EntitlementManagement.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Not supported. |
HTTP request
GET /identityGovernance/entitlementManagement/assignments/filterByCurrentUser(on='parameterValue')
Function parameters
The following table shows the parameters that can be used with this function.
Parameter | Type | Description |
---|---|---|
on | accessPackageAssignmentFilterByCurrentUserOptions | The list of user options that can be used to filter on the access package assignments list. The possible values are: target , createdBy . |
target
is used to get theaccessPackageAssignment
objects where the signed-in user is the target. The resulting list includes all of the assignments, current and expired, for the caller across all catalogs and access packages.createdBy
is used to get theaccessPackageAssignment
objects created by the signed-in user. The resulting list includes all of the assignments that the caller created for themselves or on behalf of others, such as in case of admin direct assignment, across all catalogs and access packages.
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and an accessPackageAssignment collection in the response body.
When a result set spans multiple pages, Microsoft Graph returns that page with an @odata.nextLink
property in the response that contains a URL to the next page of results. If that property is present, continue making additional requests with the @odata.nextLink
URL in each response, until all the results are returned. For more information, see paging Microsoft Graph data in your app.
Examples
Request
GET https://graph.microsoft.com/v1.0/identityGovernance/entitlementManagement/assignments/filterByCurrentUser(on='target')
Response
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"value": [
{
"id": "5521fb4f-6a6c-410a-9191-461a65fd39d4",
"state": "delivered",
"status": "Delivered",
"expiredDateTime": "null",
"schedule": {
"@odata.type": "microsoft.graph.entitlementManagementSchedule"
}
}
]
}
Feedback
Submit and view feedback for