Navigate to https://console.developers.google.com


1. Log in with your admin account

2. Create a new project ( the name doesn't matter )



3. Go to Library and search for Admin SDK and enable it




4. Go to OAuth consent screen section and set it to Internal nastavit internal, enter the name ( will be shown when doing authorization in OptimiDoc )




5. Go to Credentials and create new OAuth 2.0 Client, enter any name you want and add Authorised redirect URIs: https://oauth.optimidoc.com/GDirectory/




6. Copy generated client ID and secret to OptimiDoc Google Directory import settings.

7. In import settings enter domain and other optional atributes ( such as groups )

8. Click the Unathorized button to authorize the GSuite Directory



9. Once successfully authorized you can click the Synchronize button


Note

It might be necessary to enable API at https://admin.google.com/ in Security -> API permissions