This Blueprint shows authenticates with Google API using a service account and then index ALL users. When you have indexed all users from Google you can start to search and add actions to do automation like updating user information.
- Onify Hub v2
 - Onify Flow license
 - Camunda Modeler 4.4 or later
 - Google G Suite
 
- 4 x Settings
 - 2 x Resources
 - 1 x Flows
 
In order to index information from Google we need to setup a couple of things.
- Create a new Google cloud project (optional)
 - Create a service account
 - Create a private key (json) for the service account
 - Activate Admin SDK service for the project
 - Enable G Suite domain-wide delegation
 - Delegate domain-wide authority to your service account
 
Add the following settings via /admin/settings.
| Key | Name | Description | Value | Type | Tag | Role | 
|---|---|---|---|---|---|---|
| google_customerid | Google customer id | Customer id where the users are located | xxxxxxx | string | admin | |
| google_serviceaccount_email | Google service account email | Service account email | *.iam.gserviceaccount.com | string | admin | |
| google_serviceaccount_impersonate_email | Google service account impersonate email | What user to impersonate. Must be valid user in G Suite | *@onify.co | string | admin | |
| google_serviceaccount_privatekey | Google service account private key | The private key for the service account | ----BEGIN PRIVATE KEY-----... | password | admin | 
- Copy files to resources
 - Modifiy 
transform_users.jsand make custom changes to item transformation (optional) 
- Open 
index-users-from-google.bpmnin Camunda Modeler - Customize the flow (optional)
 - Click 
Deploy current diagramand follow the steps 
To test and run the flow, click Start current diagram
- Community/forum: https://support.onify.co/discuss
 - Documentation: https://support.onify.co/docs
 - Support and SLA: https://support.onify.co/docs/get-support
 
This project is licensed under the MIT License - see the LICENSE file for details.

