Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcosvidolin/gsuitefy
Gsuite Admin client to manage users and groups
https://github.com/marcosvidolin/gsuitefy
admin client groups gsuite python users
Last synced: about 2 months ago
JSON representation
Gsuite Admin client to manage users and groups
- Host: GitHub
- URL: https://github.com/marcosvidolin/gsuitefy
- Owner: marcosvidolin
- License: mit
- Created: 2019-10-10T18:50:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-15T19:14:50.000Z (over 3 years ago)
- Last Synced: 2024-11-10T19:17:27.598Z (2 months ago)
- Topics: admin, client, groups, gsuite, python, users
- Language: Python
- Homepage: https://pypi.org/project/gsuitefy/
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gsuite
[![Build Status](https://travis-ci.org/marcosvidolin/gsuitefy.svg?branch=master)](https://travis-ci.org/marcosvidolin/gsuitefy) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/ff1fcd33e0c0461f8aac31250b64b9ac)](https://www.codacy.com/manual/marcosvidolin/gsuitefy?utm_source=github.com&utm_medium=referral&utm_content=marcosvidolin/gsuitefy&utm_campaign=Badge_Grade)
Gsuite Admin client to manage users and groups
## How to use
Install:
```shell
pip install gsuitefy
```Import:
```python
from gsuitefy.gsuite import GSuiteAdmin
```Sample:
```python
# User with gsuite manager rights
MANAGER_USER_MAIL = '[email protected]'
# Email of the Service Account
SERVICE_ACCOUNT_EMAIL = '[email protected]'
# Path to the service account JSON file
SERVICE_ACCOUNT_FILE_PATH = os.path.join(os.path.dirname(__file__), 'service-account.json')gsuite = GSuiteAdmin(group_management_email=MANAGER_USER_MAIL,
service_account=SERVICE_ACCOUNT_FILE_PATH,
service_account_email=SERVICE_ACCOUNT_EMAIL)gsuite.add_member_to_group(member='[email protected]', groupKey='[email protected]')
```## Development
Install all the project's dependencies
```shell
pip install -r requirements.txt
```## Contributors
[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/images/0)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/links/0)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/images/1)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/links/1)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/images/2)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/links/2)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/images/3)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/links/3)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/images/4)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/links/4)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/images/5)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/links/5)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/images/6)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/links/6)[![](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/images/7)](https://sourcerer.io/fame/marcosvidolin/marcosvidolin/gsuitefy/links/7)