Teamdrives: list

Requires authorization

Lists the user's Team Drives. Try it now.

This method accepts the q parameter, which is a search query combining one or more search terms. For more information, see the Search for Files and Team Drives guide.

Request

HTTP request

GET https://www.googleapis.com/drive/v3/teamdrives

Parameters

Parameter name Value Description
Optional query parameters
pageSize integer Maximum number of Team Drives to return. Acceptable values are 1 to 100, inclusive. (Default: 10)
pageToken string Page token for Team Drives.
q string Query string for searching Team Drives. See the "Search for Files and Team Drives" guide for the supported syntax.
useDomainAdminAccess boolean Issue the request as a domain administrator; if set to true, then all Team Drives of the domain in which the requester is an administrator are returned. (Default: false)

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/drive
https://www.googleapis.com/auth/drive.readonly

Request body

Do not supply a request body with this method.

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "drive#teamDriveList",
  "nextPageToken": string,
  "teamDrives": [
    teamdrives Resource
  ]
}
Property name Value Description Notes
kind string Identifies what kind of resource this is. Value: the fixed string "drive#teamDriveList".
nextPageToken string The page token for the next page of Team Drives. This will be absent if the end of the Team Drives list has been reached. If the token is rejected for any reason, it should be discarded, and pagination should be restarted from the first page of results.
teamDrives[] list The list of Team Drives. If nextPageToken is populated, then this list may be incomplete and an additional page of results should be fetched.

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Send feedback about...

Drive REST API
Drive REST API
Need help? Visit our support page.