Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jehiah/google_group_settings_audit

A script to query google group settings api
https://github.com/jehiah/google_group_settings_audit

Last synced: 24 days ago
JSON representation

A script to query google group settings api

Awesome Lists containing this project

README

        

# Google Group Settings Audit

This is a script to help audit the settings of groups on a google apps domain

### Steps to Use

1. setup a google api project https://console.developers.google.com/
2. enable the following apis: "Groups Settings API" and "Admin SDK"
3. setup the Oauth2 Callback as `http://localhost:8080/`
4. `pip install python-gflags oauth2client tornado`
5. run `python audit_groups.py --client-id=... --client-secret=... --domain=yourdomain.com`

Expected Output:

```xml
[email protected]

tag:googleapis.com,2010:apps:groupssettings:GROUP:[email protected]
Groups Resource Entry
admin

Google

[email protected]
team

CAN_REQUEST_TO_JOIN
ALL_IN_DOMAIN_CAN_VIEW
ALL_IN_DOMAIN_CAN_VIEW
ALL_MANAGERS_CAN_INVITE
false
ANYONE_CAN_POST
true
5242880
true
false
MODERATE_NONE
ALLOW
REPLY_TO_IGNORE

false

false
false
false
DEFAULT_FONT
true
ALL_MEMBERS_CAN_LEAVE
ANYONE_CAN_CONTACT

****************************************
...[repeating for each group]
```