Getting OneDrives
You can get a resource representation of organization OneDrives.
Request
GET https://<hostname>:4443/v5/Organizations/{organizationId}/Users/{userId}/OneDrives |
Request Headers
The request header must contain an authorization token of the current session.
Request Parameters
The following parameters must be specified in the URL of the request.
Parameter | Type | Description |
---|---|---|
organizationId | string | An identification number of the organization. |
userId | string | An identification number of the user. |
Request Body
None.
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns a response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
---|---|
Content-length | The length of the response body. |
Content-type | The media type and syntax of the response body message: application/json; charset=utf-8 |
Response Body
In the response body, the server returns a resource representation of the /Organizations/{organizationId}/Users/{userId}/OneDrives resource.
Examples
Example 1
Request: GET https://abc.tech.local:4443/v5/Organizations/92460656-7a85-4a04-b1af-1ea903c0bc2e/Users/5c5fe7b7-d240-49c9-a5ee-2d96d47bf72d00000000-0000-0000-0000-000000000000/OneDrives
Request Header: Authorization: Bearer <Access-Token>
Response: 200 OK
Response Body: [ { "id":"b4893c84-2d65-4882-8d0a-eb81fbd5f42eaade5e27-92a0-40f8-9086-e9a43e715514", "name":"sharedmailboxod", "url":"https://backup-my.sharepoint.com/personal/sharedmailboxod_backup_onmicrosoft_com", "_links":{ "self":{ "href":"https://abc.tech.local:4443/v5/organizations/92460656-7a85-4a04-b1af-1ea903c0bc2e/users/5c5fe7b7-d240-49c9-a5ee-2d96d47bf72d00000000-0000-0000-0000-000000000000/onedrives/b4893c84-2d65-4882-8d0a-eb81fbd5f42eaade5e27-92a0-40f8-9086-e9a43e715514" }, "user":{ "href":"https://abc.tech.local:4443/v5/organizations/92460656-7a85-4a04-b1af-1ea903c0bc2e/users/5c5fe7b7-d240-49c9-a5ee-2d96d47bf72d00000000-0000-0000-0000-000000000000" } } } ] |