Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use 1 shared drive only ? #15

Closed
masbodo opened this issue Aug 16, 2020 · 7 comments
Closed

how to use 1 shared drive only ? #15

masbodo opened this issue Aug 16, 2020 · 7 comments

Comments

@masbodo
Copy link

masbodo commented Aug 16, 2020

i have many shared drive

how to use 1 shared drive only ?

@iwestlin
Copy link
Owner

iwestlin commented Aug 16, 2020

...you can simply open https://your.domain.com/ls/your-team-drive-id

There will be a search box in the top-right corner of that page, and it will only search files in that team drive.

@masbodo
Copy link
Author

masbodo commented Aug 16, 2020

...you can simply open https://your.domain.com/ls/your-team-drive-id

There will be a search box in the top-right corner of that page, and it will only search files in that team drive.

but user can access other shared drive or root with delete /ls/your-team-drive-id

any solutions ?

@iwestlin
Copy link
Owner

I just added the support of service account, you could open any of your .json file of service account, and copy all it's content here:

SA: {} // 用文本编辑器打开你的任意SA的json授权文件,将其中内容整体复制下来,替换掉 {}

Then all you need to do is to add the sa's client_email to the specific team drive's members.

@iwestlin
Copy link
Owner

// 用文本编辑器打开你的任意SA的json授权文件,将其中内容整体复制下来,替换掉 {}

means replace {} with all content in .json file of a service account.

@masbodo
Copy link
Author

masbodo commented Aug 16, 2020

o the specific team drive's members.

how to add multiple email ?

"client_email": "example123@gmail.com", "client_id": "132423423423423423423", "auth_uri": "https://accounts.google.com/o/oauth2/auth", "token_uri": "https://oauth2.googleapis.com/token", "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/example123@gmail.com"

the client_x509_cert_url must added client_email too ?

@iwestlin
Copy link
Owner

just add example123@gmail.com to members of that team drive.

here is a tutorial: https://support.google.com/a/users/answer/9310249#1.2

@masbodo
Copy link
Author

masbodo commented Aug 17, 2020

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants