OneDrives of Organization User

The /Organizations/{organizationId}/Users/{userId}/OneDrives resource collection represents OneDrives of an organization user.

Get OneDrives of Organization User

Returns a collection of an organization user OneDrives.

NOTE
A user can have two OneDrives if it is a member of a hybrid Microsoft 365 organization.

SecurityBearer
Request
path Parameters
organizationId
required
string <uuid>

Specifies the identification number of the Microsoft 365 organization. For more information on how to get this parameter, see Get Organizations.

userId
required
string

Specifies the identification number of the user. For more information on how to get this parameter, see Get Organization Users.

query Parameters
limit
integer <int32>

Limits the maximum number of items that the server will return on a page. The maximum supported number of items per page is 10,000. The default value is 30.

offset
integer <int32>

Excludes from a response page the first N items of a collection resource. The default value is 0.

setId
string <uuid>

Specifies ID of a request sent earlier and stored in cache. Using the ID, you decrease the number of requests to the cloud.

Responses
200

OK

default

Operation failure response.

get/v8/Organizations/{organizationId}/Users/{userId}/OneDrives
Request samples
Response samples
application/json
{
  • "offset": 0,
  • "limit": 0,
  • "setId": "83e19bc1-5428-42b5-88ea-b28354e481f3",
  • "results": [
    ],
  • "_links": {
    }
}

Get OneDrive of Organization User

Returns a resource representation of OneDrive with the specified ID that belongs to an organization user with the specified ID.

SecurityBearer
Request
path Parameters
organizationId
required
string <uuid>

Specifies the identification number of the Microsoft 365 organization. For more information on how to get this parameter, see Get Organizations.

userId
required
string

Specifies the identification number of the user. For more information on how to get this parameter, see Get Organization Users.

onedriveId
required
string

Specifies the identification number of OneDrive. For more information on how to get this parameter, see Get OneDrives of Organization User.

Responses
200

OK

default

Operation failure response.

get/v8/Organizations/{organizationId}/Users/{userId}/OneDrives/{onedriveId}
Request samples
Response samples
application/json
{
  • "id": "string",
  • "name": "string",
  • "url": "string",
  • "_links": {
    }
}

Document updated 12/18/2025

Page content applies to build 8.3.0.2201