Skip to main content

Gsuite Admin client to manage users and groups

Project description

gsuite

Build Status Codacy Badge

Gsuite Admin client to manage users and groups

How to use

Install:

pip install gsuitefy

Import:

from gsuitefy.gsuite import GSuiteAdmin

Sample:

# User with gsuite manager rights
MANAGER_USER_MAIL = 'group-manager@bar.com'
# Email of the Service Account
SERVICE_ACCOUNT_EMAIL = 'sa@bar.iam.gserviceaccount.com'
# 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='foo@bar.com', groupKey='foo-group@bar.com')

Development

Install all the project's dependencies

pip install -r requirements.txt

Contributors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

gsuitefy-1.1.3-py2.py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page