Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)