Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Namespace: microsoft.graph
Get a list of the customDataProvidedResourceUploadSession objects and their properties.
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) | EntitlementManagement.Read.All | EntitlementManagement.ReadWrite.All |
| Delegated (personal Microsoft account) | Not supported. | Not supported. |
| Application | EntitlementManagement.Read.All | EntitlementManagement.ReadWrite.All |
Tip
For delegated access using work or school accounts, the signed-in user must be assigned an administrator role with supported role permissions through one of the following options:
- A role in the Entitlement Management system where the least privileged role is Catalog owner. This is the least privileged option.
- More privileged Microsoft Entra roles supported for this operation:
- Identity Governance Administrator
In app-only scenarios, the calling app can be assigned one of the preceding supported roles instead of the EntitlementManagement.ReadWrite.All application permission. The Catalog owner role is less privileged than the EntitlementManagement.ReadWrite.All application permission.
For more information, see Delegation and roles in entitlement management and how to delegate access governance to access package managers in entitlement management.
Tip
For delegated access using work or school accounts, the signed-in user must be assigned an administrator role with supported role permissions through one of the following options:
- A role in the Entitlement Management system where the least privileged role is Catalog owner. This is the least privileged option.
- More privileged Microsoft Entra roles supported for this operation:
- Identity Governance Administrator
In app-only scenarios, the calling app can be assigned one of the preceding supported roles instead of the EntitlementManagement.ReadWrite.All application permission. The Catalog owner role is less privileged than the EntitlementManagement.ReadWrite.All application permission.
For more information, see Delegation and roles in entitlement management and how to delegate access governance to access package managers in entitlement management.
HTTP request
GET /identityGovernance/entitlementManagement/catalogs/{accessPackageCatalogId}/resources/{accessPackageResourceId}/uploadSessions
Optional query parameters
This method supports the $expand, $filter, $top, $skip, $orderby, $count OData query parameters to help customize the response. For general information, see OData query parameters.
The following example queries for nested $filter and $orderby are supported for the files relationship of type customDataProvidedResourceFile.
| Property | Operators | Example |
|---|---|---|
| name | eq, ne |
$expand=files($filter=name eq 'building-a-access.csv') |
| size | eq, ne, gt, ge, lt, le |
$expand=files($filter=size gt 1000000) |
| uploadedDateTime | eq, ne, gt, ge, lt, le |
$expand=files($filter=uploadedDateTime ge 2026-01-01T00:00:00Z) |
The name, size, and uploadedDateTime properties also support $orderby as shown in the following examples.
Get an upload session with files sorted by uploadedDateTime:
GET /identityGovernance/catalogs/{accessPackageCatalogId}/resources/{accessPackageResourceId}/uploadSessions?$expand=files($orderby=uploadedDateTime desc)
Get an upload session with files filtered by size (larger than 1 MB):
GET /identityGovernance/catalogs/{accessPackageCatalogId}/resources/{accessPackageResourceId}/uploadSessions?$expand=files($filter=size gt 1000000)
Get an upload session with files sorted by name:
GET /identityGovernance/catalogs/{accessPackageCatalogId}/resources/{accessPackageResourceId}/uploadSessions?$expand=files($orderby=name asc)
Request headers
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Request body
Don't supply a request body for this method.
Response
If successful, this method returns a 200 OK response code and a collection of customDataProvidedResourceUploadSession objects in the response body.
Examples
Request
The following example shows a request.
GET https://graph.microsoft.com/v1.0/identityGovernance/entitlementManagement/catalogs/{accessPackageCatalogId}/resources/{accessPackageResourceId}/uploadSessions
Response
The following example shows the response.
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/v1.0/$metadata#identityGovernance/entitlementManagement/catalogs('3c9f2b1e-8a4d-4e7f-9d2a-6b3e1c7f5a9d')/resources('15eeb4df-bd15-4d8b-9679-e75791dbc1d9')/uploadSessions",
"value": [
{
"@odata.type": "#microsoft.graph.customDataProvidedResourceAccessReviewUploadSession",
"id": "2fa3bc17-de50-4f48-91f0-dd4aede5c424",
"referenceId": "6ddffb12-922b-4825-93c3-9457dc2c1f81",
"status": "complete",
"isUploadDone": true,
"createdDateTime": "2026-03-24T21:34:56.220345Z",
"stats": {
"filesUploaded": 1,
"totalBytesUploaded": 10331
},
"data": {
"@odata.type": "#microsoft.graph.customDataProvidedResourcePayloads.accessReviewContextData",
"reviewDefinitionId": "a89003b1-d457-4b8a-b060-42a3b6ad6c44",
"reviewInstanceId": "6ddffb12-922b-4825-93c3-9457dc2c1f81"
}
}
]
}