GithubHelp home page GithubHelp logo

xtivat0r / gdautoadd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from darkinkyu/gdautoadd

0.0 0.0 1.0 46 KB

Add users to your Shared Drive or Group

Home Page: gda-uto-add-git-master-clatteringmarion.vercel.app

License: GNU General Public License v3.0

JavaScript 76.43% HTML 23.57%

gdautoadd's Introduction

GDAutoAdd

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是哪个, 抱歉 自己想吧)

贡献

欢迎提出请求。 对于重大更改,请先打开一个问题以讨论您要更改的内容。

许可

该程序根据[GPLv3]许可发布(https://www.gnu.org/licenses/gpl-3.0.en.html)

gdautoadd's People

Contributors

szhu25 avatar

Forkers

sajibahsan01

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.