Google mobile devices REST API uses OAuth2 based authentication.
To integrate Google with Oomnitza, you'll need the following information:
- Client ID
- Client Secret
- Scope
You can obtain your Client ID and Client Secret by completing the following steps in the Google API Console:
Create a new project
- Open the Google API Console Dashboard.
- In the sidebar, click Enabled APIs & services.
- Select the dropdown arrow next to the project name and click New Project.
- Enter a Project name and click Create.
Create an OAuth app
- In the sidebar, click OAuth consent screen.
- Select either Internal or External, depending on who you want to make your app available to.
- Click Create.
- Enter your App name and details. You do not need to specify an Authorized domain here, as it will be automatically populated when you add your redirect URL.
- Add your scopes. You can enter multiple scopes separated by blank spaces. For a complete list of scopes, refer to Google documentation: OAuth 2.0 Scopes for Google.
Oomnitza integration | Required Scopes |
Google Cloud instances | https://www.googleapis.com/auth/compute.readonly https://www.googleapis.com/auth/compute |
Google Workspace Chrome OS devices | https://www.googleapis.com/auth/admin.directory.device.chromeos |
Google Workspace Mobile devices | https://www.googleapis.com/auth/admin.directory.device.mobile |
Google Workspace Users | https://www.googleapis.com/auth/admin.directory.user https://www.googleapis.com/auth/admin.directory.user.security https://www.googleapis.com/auth/admin.directory.group https://www.googleapis.com/auth/admin.directory.group.member https://www.googleapis.com/auth/admin.directory.user.readonly https://www.googleapis.com/auth/gmail.settings.basic https://www.googleapis.com/auth/gmail.settings.sharing https://www.googleapis.com/auth/calendar https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/userinfo.email |
Google Workspace User groups | https://www.googleapis.com/auth/admin.directory.group.readonly https://www.googleapis.com/auth/admin.directory.group https://www.googleapis.com/auth/admin.directory.group.member |
Create your credentials (Client ID and Secret)
- In the sidebar, click Credentials.
- Click Create Credentials>OAuth Client ID.
- From the Application type list, select Web application.
- Provide the following redirect URL for Oomnitza:
https://generic-oauth2-proxy.oomnitza.com/oauth2/redirect_url
. - Click Create.
- Copy or download your Client ID and Client Secret.
Tip
Don't forget to keep a copy of your client secret.
Enable Admin SDK API
- In the sidebar, click Library.
- Search for Admin SDK API.
- Click the API tile.
- Click Enable.
Important
If you do not have Admin SDK enabled or the correct scopes defined, you may receive a 403 Forbidden insufficient permission response code when you run the integration in Oomnitza.
Adding the credentials
Important
Some APIs might be restricted to Administrators or users with specific roles. To check that your user account has the appropriate privileges, open this page https://admin.google.com/
. If you can access this page, you should have no issues in adding your credentials.
To stream Google data in Oomnitza, complete the following steps:
- In Oomnitza, click Configuration > Security > Credentials.
- Click Add new credential (+).
- Search for the integration, and then click the forward button > to select the integration.
- Enter your client credentials and any other additional information.
- Click Authenticate. You are prompted to log in to authorize your request.
- Click CREATE.
Information
If the integration is not listed, click Advanced Mode, and add your credentials.
- Add the information details.
- Click the AUTHORIZATION tab.
- Ensure that OAuth 2.0 is selected as the Authorization type.
- Ensure that Google is selected from the SaaS list.
- Enter your Client ID, Client Secret, and Scope.
- Click Authenticate.
- Click Create.
Documentation Links
For further information please consult the links below:
Comments
0 comments
Please sign in to leave a comment.