Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 785 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 785 Bytes

groupkit-app-engine

A micro utility library to check whether the current user is a member of a Google Group. Requires the user to grant the host application access to read metadata about files in Google Drive.

This library is currently a proof of concept and a WIP.

Usage

  1. Visit the Google API Console and create a new OAuth client ID for a web application.
  2. Ensure you add an authorized redirect URI for /oauth2callback.
  3. Download the secrets to client_secrets.json.
import groupkit

# Must be a user whose credentials we already have.
credentials = <credentials>
user_email = '[email protected]'
group_email = '[email protected]'

groupkit.is_user_in_group(user_email, group_email, credentials)