This integration allows you to import users from Google into ChiefOnboarding. There is currently a max set at 2500 users, but you can increase it by changing the amount_pages_to_fetch
property.
{ "oauth": { "refresh": { "url": "https://oauth2.googleapis.com/token", "data": { "client_id": "{{ CLIENT_ID }}", "grant_type": "refresh_token", "client_secret": "{{ CLIENT_SECRET }}", "refresh_token": "{{ oauth.refresh_token }}" }, "method": "POST" }, "access_token": { "url": "https://oauth2.googleapis.com/token?client_id={{CLIENT_ID}}&client_secret={{CLIENT_SECRET}}&grant_type=authorization_code&redirect_uri={{redirect_url}}", "method": "POST" }, "authenticate_url": "https://accounts.google.com/o/oauth2/v2/auth?client_id={{CLIENT_ID}}&redirect_uri={{redirect_url}}&response_type=code&scope=https://www.googleapis.com/auth/admin.directory.user.readonly&access_type=offline" }, "action": "create", "execute": [ { "url": "https://admin.googleapis.com/admin/directory/v1/users?customer=my_customer&orderBy=email&maxResults=500", "method": "GET", "cast_data_to_json": true } ], "headers": { "Accept": "application/json", "Content-Type": "application/json", "Authorization": "Bearer {{oauth.access_token}}" }, "data_from": "users", "next_page": "https://admin.googleapis.com/admin/directory/v1/users?customer=my_customer&pageToken={{ NEXT_PAGE_TOKEN }}&orderBy=email&maxResults=500", "data_structure": { "email": "primaryEmail", "last_name": "name.familyName", "first_name": "name.givenName" }, "initial_data_form": [ { "id": "CLIENT_ID", "name": "The Google client id", "description": "You can find it here: " }, { "id": "CLIENT_SECRET", "name": "The Google client secret", "description": "You can find it here: " } ], "next_page_token_from": "nextPageToken", "amount_pages_to_fetch": 5 }
You can now go to people -> colleagues and hit "import user from Google".