Đinh Tiến Vũ
Đinh Tiến Vũ

Reputation: 1113

Listing large 1000 shared drives from Google drive via API

I want to get all shared drive, large 1000 shared drive via API or export it to a list

only get 1000 shared drive via admin and API

In google document about shared drive, they limit view 1000 shared drive, Drive lists up to 1,000 shared drives in the left navigation. You can still access the other shared drives using the direct URL, or search for specific files and folders in the shared drives. https://support.google.com/a/users/answer/7338880?hl=en

I using api but still can not load over 1000 shared drive https://developers.google.com/drive/api/v3/reference/drives/list?apix_params=%7B%22pageSize%22%3A100%2C%22pageToken%22%3A%22~!!~AI9FV7RNwVtQIVYh3GH4Dm6wzTfzUsZ4TbO_2SItIN1lJ7CvzZR7vmzZfZIQCEqS6eHx2Xc8lsAb%22%2C%22useDomainAdminAccess%22%3Atrue%7D#try-it

How to list all >1000 shared drive via API, or export to a list?

Thank you

Upvotes: 0

Views: 221

Answers (1)

Đinh Tiến Vũ
Đinh Tiến Vũ

Reputation: 1113

Happy to show my friends, I found the way to do that.

  1. we need account admin, the account can access to this link https://admin.google.com/ac/drive/manageshareddrives?
  2. we need add param useDomainAdminAccess=true

Easy we can test easy before coding in Google playground https://developers.google.com/drive/api/v3/reference/drives/list#try-it

we need account supper admin and add useDomainAdminAccess=true

And here is my result I can load 1699 shared drive enter image description here

Thank you for my friends K, M, and Tanaike, I am happy to see you.

Upvotes: 0

Related Questions