Total Pageviews

Wednesday 15 June 2022

GDAutoAdd

 Add users to your Shared Drive or Group.

GDAutoAdd is a script which allows users to add to the Google group (or Shared Drive) you specified. It's intended to be deployed to CloudFlare Workers.

WARNING:
This project is not actively supported. Google may also ban you for using this project.

Installation

  1. Create a CloudFlare worker and paste the main.js file.
  2. Get your client_id, client_secret and refresh_token, paste into authConfig.
  3. Enable captcha by changing captcha_config and add site_key, secret_key into corresponding settings.
  4. Enter your Group ID or Shared Drive ID to gd_config. If you want to add users to your group, enter "group" in gd_config.type, or enter "drive"
  5. Modify member_filter section. You can setup AllowList and BlockList to filter users. member_filter and domain_filter are both working

Usage

Deploy to Cloudflare Worker.

Current Limits

  1. The daily limit does not function correctly. I'll consider develop a KV version to store those limits if i feel good and have that time.
  2. your authConfig MUST be generated from GSuite/Workspace Admin in order to add member to Group. (If you can't figure out what is your group ID, CAN'T HELP!)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This program is released under license GPLv3

GDAutoAdd

使用GDAutoAdd自助添加用户至您指定的Google组(或Shared Drive)中。该程序应部署至CloudFlare Workers。

⚠️ 警告
目前我没打算维护/更新版本。 如果因使用该项目被Google封号, 自求多福。

安装

  1. 创建新的CloudFlare Worker, 并将main.js粘贴进去.
  2. 获取您的client_id,client_secret和refresh_token,粘贴到authConfig中。
  3. 通过更改captcha_config启用验证码,并将site_key和secret_key添加到相应的设置中。
  4. 在gd_config中输入您的组ID或共享驱动器ID。 如果要将用户添加到组中,请在gd_config.type中输入"group",或输入"drive"
  5. 修改member_filter部分。 使用白名单和黑名单筛选用户(如需设置单用户名单, 写在"member_filter"里。 域名名单使用"domain_filter")

用法

部署至Cloudflare Worker, 打开使用

当前限制

  1. 每日限制目前没法正常使用。 如果我心情好 + 有时间的话可能会出一个使用KV的版本。
  2. 自动加群只能在authConfig由GSuite/Workspace管理员生成的情况下使用。 (如果你不知道GroupID是哪个, 抱歉 自己想吧)

from https://github.com/darkinkyu/GDAutoAdd

 

No comments:

Post a Comment