| title | unifiedRoleEligibilityScheduleInstance: filterByCurrentUser |
|---|---|
| description | Get a list of the unifiedRoleEligibilityScheduleInstance objects and their properties filtered by a particular user principal |
| author | rkarim-ms |
| ms.localizationpriority | medium |
| ms.subservice | entra-id-governance |
| doc_type | apiPageType |
| ms.date | 04/05/2024 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Get a list of the unifiedRoleEligibilityScheduleInstance objects and their properties associated with a particular principal object.
[!INCLUDE national-cloud-support]
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.
[!INCLUDE permissions-table]
[!INCLUDE rbac-pim-entra-roles-apis]
GET /roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUser(on='principal')The following table shows the query parameters that can be used with this method.
| Parameter | Type | Description |
|---|---|---|
| on | roleEligibilityScheduleInstanceFilterByCurrentUserOptions | Filter to query objects for which the current user is the principal. Allowed value is principal. Required. |
This method supports the $select OData query parameter to help customize the response. For general information, see OData query parameters.
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 200 OK response code and a collection of unifiedRoleEligibilityScheduleInstance objects in the response body.
GET https://graph.microsoft.com/beta/roleManagement/directory/roleEligibilityScheduleInstances/filterByCurrentUser(on='principal')
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following is an example of the response showing an instance of a roleEligibilitySchedule that is through a group assignment.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(unifiedRoleEligibilityScheduleInstance)",
"value": [
{
"@odata.type": "#microsoft.graph.unifiedRoleEligibilityScheduleInstance",
"id": "5wuT_mJe20eRr5jDpJo4sXbfd22VX0BOmpL501774kM-1-e",
"principalId": "92f37639-ba1e-471c-b9ba-922371c740cb",
"roleDefinitionId": "fe930be7-5e62-47db-91af-98c3a49a38b1",
"directoryScopeId": "/",
"appScopeId": null,
"startDateTime": "2021-08-06T16:18:04.793Z",
"endDateTime": "2022-06-30T00:00:00Z",
"memberType": "Group",
"roleEligibilityScheduleId": "2303e6ff-5939-496f-8057-9203db4c75f3"
}
]
}