You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding support service accounts
Signed-off-by: lzzy12 <[email protected]>
Added scripts and docs for generating service accounts
Signed-off-by: lzzy12 <[email protected]>
gen_sa_accounts: Save credentials with indexed file name
Signed-off-by: lzzy12 <[email protected]>
gdriveTools: Avoid using oauth2 library for service accounts
oauth2 library is deprecated
Signed-off-by: lzzy12 <[email protected]>
## Using service accounts for uploading to avoid user rate limit
92
+
93
+
Many thanks to [AutoRClone](https://github.com/xyou365/AutoRclone) for the scripts
94
+
### Generating service accounts
95
+
Step 1. Generate service accounts [What is service account](https://cloud.google.com/iam/docs/service-accounts)[How to use service account in rclone](https://rclone.org/drive/#service-account-support).
96
+
---------------------------------
97
+
Let us create only the service accounts that we need.
98
+
**Warning:** abuse of this feature is not the aim of autorclone and we do **NOT** recommend that you make a lot of projects, just one project and 100 sa allow you plenty of use, its also possible that overabuse might get your projects banned by google.
99
+
100
+
```
101
+
Note: 1 service account can copy around 750gb a day, 1 project makes 100 service accounts so thats 75tb a day, for most users this should easily suffice.
A folder named accounts will be created which will contain keys for the service accounts created
107
+
```
108
+
We highly recommend to zip this folder and store it somewhere safe, so that you do not have to create a new project everytime you want to deploy the bot
109
+
```
110
+
### Adding service accounts to Google Groups:
111
+
We use Google Groups to manager our service accounts considering the
112
+
[Official limits to the members of Team Drive](https://support.google.com/a/answer/7338880?hl=en) (Limit for individuals and groups directly added as members: 600).
113
+
114
+
1. Turn on the Directory API following [official steps](https://developers.google.com/admin-sdk/directory/v1/quickstart/python) (save the generated json file to folder `credentials`).
115
+
116
+
2. Create group for your organization [in the Admin console](https://support.google.com/a/answer/33343?hl=en). After create a group, you will have an address for example`[email protected]`.
4. Now, add Google Groups (**Step 2**) to manager your service accounts, add the group address `[email protected]` or `[email protected]` to the Team drive or folder
0 commit comments