forked from l3uddz/gdsa_maker
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,41 @@ | ||
# service_account_maker | ||
Usage: sa_maker.py [OPTIONS] COMMAND [ARGS]... | ||
|
||
service_account_maker | ||
|
||
``` | ||
Options: | ||
--version Show the version and exit. | ||
-v, --verbose Adjust the logging level | ||
--config-path FILE Configuration filepath [default: | ||
/root/gdsa_maker/config.json] | ||
--log-path FILE Log filepath [default: /root/gdsa_maker/activity.log] | ||
--token-path FILE Token filepath [default: /root/gdsa_maker/token.json] | ||
--help Show this message and exit. | ||
Commands: | ||
authorize Authorize Google Account | ||
create-accounts Create service accounts | ||
create-group Create group | ||
create-teamdrive Create teamdrive | ||
list-accounts Retrieve existing service accounts | ||
list-group-users Lists users for a group | ||
list-groups Retrieve existing groups | ||
list-teamdrive-users Lists users for a teamdrive | ||
list-teamdrives Retrieve existing teamdrives | ||
remove-group Remove a group | ||
remove-teamdrive-users Remove users from a teamdrive | ||
set-group-users Set users for a group | ||
set-teamdrive-users Set users for a teamdrive | ||
Args: | ||
--name, -n Name prefix | ||
--amount, -a Amount of service accounts to create | ||
--domain, -d Domain of the G Suite account | ||
--key-prefix, -k Name prefix of service accounts | ||
``` | ||
|
||
Basic command: | ||
|
||
```python3 sa_maker.py create-accounts -n <prefix_of_sa> -a <number_of_sa_to_create>``` | ||
|