https://github.com/onify/blueprint-google-index-users
Onify Blueprint: Indexing Users from Google
https://github.com/onify/blueprint-google-index-users
blueprint bpmn flow google indexing onify onify-blueprint onify-blueprints rest-api
Last synced: 6 months ago
JSON representation
Onify Blueprint: Indexing Users from Google
- Host: GitHub
- URL: https://github.com/onify/blueprint-google-index-users
- Owner: onify
- License: mit
- Created: 2021-02-24T21:03:59.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-27T06:07:59.000Z (almost 4 years ago)
- Last Synced: 2025-02-16T17:57:04.369Z (over 1 year ago)
- Topics: blueprint, bpmn, flow, google, indexing, onify, onify-blueprint, onify-blueprints, rest-api
- Language: JavaScript
- Homepage: https://onify.co
- Size: 490 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://www.repostatus.org/#wip)
# Onify Blueprint: Indexing Users from Google
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.

## Requirements
* Onify Hub v2
* Onify Flow license
* Camunda Modeler 4.4 or later
* Google G Suite
## Included
* 4 x Settings
* 2 x Resources
* 1 x Flows
## Setup
### Google
In order to index information from Google we need to setup a couple of things.
1. Create a new Google cloud project (optional)
2. Create a service account
3. Create a private key (json) for the service account
4. Activate Admin SDK service for the project
5. Enable G Suite domain-wide delegation
6. Delegate domain-wide authority to your service account
### Settings
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|google|admin|
|google_serviceaccount_email|Google service account email|Service account email|*.iam.gserviceaccount.com|string|google|admin|
|google_serviceaccount_impersonate_email|Google service account impersonate email|What user to impersonate. Must be valid user in G Suite|*@onify.co|string|google|admin|
|google_serviceaccount_privatekey|Google service account private key|The private key for the service account|----BEGIN PRIVATE KEY-----...|password|google|admin|
### Resources
1. Copy files to resources
2. Modifiy `transform_users.js` and make custom changes to item transformation (optional)
### Flows
#### Deploy
1. Open `index-users-from-google.bpmn` in Camunda Modeler
2. Customize the flow (optional)
3. Click `Deploy current diagram` and follow the steps
#### Run
To test and run the flow, click `Start current diagram`
## Support
* Community/forum: https://support.onify.co/discuss
* Documentation: https://support.onify.co/docs
* Support and SLA: https://support.onify.co/docs/get-support
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.