Google Configuration
Prerequisite: Gespage must be version 9.3.0 or higher.
You will find below the steps to follow to synchronise your users from a Google directory, and enable scan to Google Drive functionality.
To enable the possibility to scan to Google Drive, you must enable the Google Drive API, create a service account to use this API and a define authorization for this service account.
Then you must synchronize your users in Gespage and create a scan profile in Gespage with Google Drive output.
Enable Google API:
Accede to you google console under the following URL: https://console.cloud.google.com
Accede to the API menu by clicking on ‘API and services’ in the quick access menu:
Go under Library, and do a search on Google Drive API:
Then, activate the API:
Service account creation:
Go back to the home menu from your Google console, and select ‘IAM and administration’:
Then, select ‘Service account’:
And choose, ‘create a service account’:
After the service account creation, you must add a key to this account.
The key must be create with JSON format.
Once the key is created, download it.
Adding autorisation:
Now, you need to go on the Google Admin console to add authorization on the service account.
You can perform this action, under the ‘API controls’ tabs.
Click on Add:
Set your ID, and add the following authorization:
To synchronise the users:
- https://www.googleapis.com/auth/admin.directory.user.readonly
- https://www.googleapis.com/auth/admin.directory.group.readonly
- https://www.googleapis.com/auth/admin.directory.group.member.readonly
To allow the Google Drive management:
- https://www.googleapis.com/auth/drive
- https://www.googleapis.com/auth/drive.file
- https://www.googleapis.com/auth/drive.metadata.readonly
Gespage user's synchronization
on Gespage, go under Directory Synchronization menu:
Choose Google Cloud Directory.
Before launch the synchronization, you must set the email for the service account you created, and import the JSON file previously created with the access right for the API regarding the users and the Google Drive access.
Gespage outgoing creation
Then, you must create an outgoing profile, and link it to a Gespage advanced scan profile.
Add an outgoing profile to save documents:
Define the storage connector to Google Drive:
Then, create an advanced scan profile for the user group you want (Default group contain all users) and define the outgoing flow to the one you create previously:
Your user can now use this scan flow, and will be able to get the scan in their Google Drive office account, under the directory GespageScan: