|
| 1 | +--- |
| 2 | +title: "List customDataProvidedResourceUploadSession objects" |
| 3 | +description: "Get a list of the customDataProvidedResourceUploadSession objects and their properties." |
| 4 | +author: "jaylenemartinez0" |
| 5 | +ms.date: 04/01/2026 |
| 6 | +ms.localizationpriority: medium |
| 7 | +ms.subservice: "entra-id-governance" |
| 8 | +doc_type: apiPageType |
| 9 | +--- |
| 10 | + |
| 11 | +# List customDataProvidedResourceUploadSession objects |
| 12 | + |
| 13 | +Namespace: microsoft.graph |
| 14 | + |
| 15 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 16 | + |
| 17 | +Get a list of the [customDataProvidedResourceUploadSession](../resources/customdataprovidedresourceuploadsession.md) objects and their properties. |
| 18 | + |
| 19 | +## Permissions |
| 20 | + |
| 21 | +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](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference). |
| 22 | + |
| 23 | +<!-- { |
| 24 | + "blockType": "permissions", |
| 25 | + "name": "accesspackageresource-list-uploadsessions-permissions" |
| 26 | +} |
| 27 | +--> |
| 28 | +[!INCLUDE [permissions-table](../includes/permissions/customdataprovidedresourceuploadsession-get-permissions.md)] |
| 29 | + |
| 30 | +[!INCLUDE [rbac-entitlement-catalog-owner-write](../includes/rbac-for-apis/rbac-entitlement-management-catalog-owner-apis-write.md)] |
| 31 | + |
| 32 | +## HTTP request |
| 33 | + |
| 34 | +<!-- { |
| 35 | + "blockType": "ignored" |
| 36 | +} |
| 37 | +--> |
| 38 | +``` http |
| 39 | +GET /identityGovernance/catalogs/{catalogId}/accessPackageResources/{accessPackageResourceId}/uploadSessions |
| 40 | +``` |
| 41 | + |
| 42 | +## Optional query parameters |
| 43 | + |
| 44 | +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](/graph/query-parameters). |
| 45 | + |
| 46 | +** Example queries for nested `$filter` and `$orderby` supported for the **files** relationship of type **customDataProvidedResourceUploadSession**. |
| 47 | + |
| 48 | +|Property|Operators|Example| |
| 49 | +|:---|:---|:---| |
| 50 | +|name|`eq`, `ne`|`$expand=files($filter=name eq 'building-a-access.csv')`| |
| 51 | +|size|`eq`, `ne`, `gt`, `ge`, `lt`, `le`|`$expand=files($filter=size gt 1000000)`| |
| 52 | +|uploadedDateTime|`eq`, `ne`, `gt`, `ge`, `lt`, `le`|`$expand=files($filter=uploadedDateTime ge 2026-01-01T00:00:00Z)`| |
| 53 | + |
| 54 | +The **name**, **size**, and **uploadedDateTime** proeprties also support `$orderby` as shown in the following examples: |
| 55 | + |
| 56 | +Get upload session with files sorted by **uploadedDateTime**: |
| 57 | +```http |
| 58 | +Get upload session with files sorted by **uploadedDateTime**: |
| 59 | +```http |
| 60 | +GET /identityGovernance/entitlementManagement/catalogs/{catalogId}/accessPackageResources/{resourceId}/uploadSessions/{sessionId}?$expand=files($orderby=uploadedDateTime desc) |
| 61 | +``` |
| 62 | + |
| 63 | +Get upload session with files filtered by **size** (larger than 1MB)@ |
| 64 | +```http |
| 65 | +GET /identityGovernance/entitlementManagement/catalogs/{catalogId}/accessPackageResources/{resourceId}/uploadSessions/{sessionId}?$expand=files($filter=size gt 1000000) |
| 66 | +``` |
| 67 | + |
| 68 | +Get upload session with files sorted by **name**: |
| 69 | +```http |
| 70 | +GET /identityGovernance/entitlementManagement/catalogs/{catalogId}/accessPackageResources/{resourceId}/uploadSessions/{sessionId}?$expand=files($orderby=name asc) |
| 71 | +``` |
| 72 | + |
| 73 | +## Request headers |
| 74 | + |
| 75 | +|Name|Description| |
| 76 | +|:---|:---| |
| 77 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 78 | + |
| 79 | +## Request body |
| 80 | + |
| 81 | +Don't supply a request body for this method. |
| 82 | + |
| 83 | +## Response |
| 84 | + |
| 85 | +If successful, this method returns a `200 OK` response code and a collection of [customDataProvidedResourceUploadSession](../resources/customdataprovidedresourceuploadsession.md) objects in the response body. |
| 86 | + |
| 87 | +## Examples |
| 88 | + |
| 89 | +### Request |
| 90 | + |
| 91 | +The following example shows a request. |
| 92 | +<!-- { |
| 93 | + "blockType": "request", |
| 94 | + "name": "list_customdataprovidedresourceuploadsession" |
| 95 | +} |
| 96 | +--> |
| 97 | +``` http |
| 98 | +GET https://graph.microsoft.com/beta/identityGovernance/catalogs/{catalogId}/accessPackageResources/{accessPackageResourceId}/uploadSessions |
| 99 | +``` |
| 100 | + |
| 101 | + |
| 102 | +### Response |
| 103 | + |
| 104 | +The following example shows the response. |
| 105 | +>**Note:** The response object shown here might be shortened for readability. |
| 106 | +<!-- { |
| 107 | + "blockType": "response", |
| 108 | + "truncated": true, |
| 109 | + "@odata.type": "microsoft.graph.customDataProvidedResourceUploadSession" |
| 110 | +} |
| 111 | +--> |
| 112 | +``` http |
| 113 | +HTTP/1.1 200 OK |
| 114 | +Content-Type: application/json |
| 115 | +
|
| 116 | +{ |
| 117 | + "@odata.context": "https://graph.microsoft.com/beta/$metadata#identityGovernance/catalogs('3c9f2b1e-8a4d-4e7f-9d2a-6b3e1c7f5a9d')/accessPackageResources('15eeb4df-bd15-4d8b-9679-e75791dbc1d9')/uploadSessions", |
| 118 | + "value": [ |
| 119 | + { |
| 120 | + "id": "2fa3bc17-de50-4f48-91f0-dd4aede5c424", |
| 121 | + "referenceId": "6ddffb12-922b-4825-93c3-9457dc2c1f81", |
| 122 | + "status": "complete", |
| 123 | + "isUploadDone": true, |
| 124 | + "createdDateTime": "2026-03-24T21:34:56.220345Z", |
| 125 | + "source": "BuildingAccessData", |
| 126 | + "type": "#microsoft.graph.accessReviewDataUploadTriggerCallbackData", |
| 127 | + "stats": { |
| 128 | + "filesUploaded": 1, |
| 129 | + "totalBytesUploaded": 10331 |
| 130 | + }, |
| 131 | + "data": { |
| 132 | + "@odata.type": "#microsoft.graph.accessReviewResourceDataUploadSessionContextData", |
| 133 | + "accessReviewId": "a89003b1-d457-4b8a-b060-42a3b6ad6c44", |
| 134 | + "accessReviewInstanceId": "6ddffb12-922b-4825-93c3-9457dc2c1f81" |
| 135 | + }, |
| 136 | + "files": [ |
| 137 | + { |
| 138 | + "id": "330667fd-c977-4367-99ea-2eb12c42c573", |
| 139 | + "name": "test-data.csv", |
| 140 | + "size": 10331, |
| 141 | + "uploadedDateTime": "2026-03-24T21:34:57.1713709Z" |
| 142 | + } |
| 143 | + ] |
| 144 | + }, |
| 145 | + { |
| 146 | + "id": "3717bbf7-6d72-4a6d-b83e-11e6038de8a1", |
| 147 | + "referenceId": "ec98588d-6de1-4f47-8a6b-0ad1b6192b6f", |
| 148 | + "status": "complete", |
| 149 | + "isUploadDone": true, |
| 150 | + "createdDateTime": "2026-03-27T21:02:25.0632085Z", |
| 151 | + "source": "CustomAccessData", |
| 152 | + "type": "#microsoft.graph.accessReviewDataUploadTriggerCallbackData", |
| 153 | + "stats": { |
| 154 | + "filesUploaded": 1, |
| 155 | + "totalBytesUploaded": 2415 |
| 156 | + }, |
| 157 | + "data": { |
| 158 | + "@odata.type": "#microsoft.graph.accessReviewResourceDataUploadSessionContextData", |
| 159 | + "accessReviewId": "170dc1f2-0622-4380-b44b-ee8bc58b975d", |
| 160 | + "accessReviewInstanceId": "ec98588d-6de1-4f47-8a6b-0ad1b6192b6f" |
| 161 | + }, |
| 162 | + "files": [ |
| 163 | + { |
| 164 | + "id": "2d66944b-6fa8-4604-a60e-d03ec4962d00", |
| 165 | + "name": "generated_test_data_20.csv", |
| 166 | + "size": 2415, |
| 167 | + "uploadedDateTime": "2026-03-27T21:02:58.9849683Z" |
| 168 | + } |
| 169 | + ] |
| 170 | + } |
| 171 | + ] |
| 172 | +} |
| 173 | +``` |
0 commit comments