Google drive Spoke integration with Oauth2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 02:00 AM
Hello everyone,
I did the integration between servicenow and google drive using google drive spoke, while configuring the Oauth2 entity, I had to click the "Get OAuth Token" button so it generates me a token. But while copying document to the drive it puts me (my admin account) as owner of documents, and it is working only with my account for gereration of the token.
So my question is how can I configure the Oauth2 entity so it doesn't use my account but a service account because I' m leaving the company I m working on and if my account is inactif it won't work
Thank you for reading me
Best Regards
Nesrine
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2024 05:23 AM
Hi @Nesrine1 ,
Can you please try below steps if it helps:
To configure the OAuth2 entity to use a service account instead of your personal account for authentication and authorization with Google Drive, follow these steps:
Create a Service Account on Google Cloud Console:
- Log in to the Google Cloud Console and navigate to IAM & Admin > Service Accounts.
- Create a new service account, assigning necessary roles and permissions.
- Download the JSON key file associated with the service account.
Configure OAuth2 Entity in ServiceNow:
- Access your ServiceNow instance as an administrator.
- Edit the OAuth2 entity configuration related to Google Drive integration.
- Upload the downloaded JSON key file to ServiceNow.
- Update OAuth2 entity settings to use the uploaded JSON key file for authentication.
By following these steps, you can seamlessly switch to using a service account for authentication and authorization, ensuring continued functionality even if your personal account becomes inactive.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2024 06:46 AM
Hello @Dipen Wadhwana ,
Thank you for your response, but how can I configure the Oauth entity to user JSON file for authentication ?
I never done that
Thank you so much for your time
Best regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2025 05:08 AM
Hi @Nesrine1 @Dipen Wadhwana ,
Can you please help with the steps—how to configure the Oauth entity with user json file for auth.?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 04:36 AM
Hello @aphaugat ,
I didn't find a solution, we used a workaround. We created an address mail add it to the GCP project;
And each time we generate a token by clicking on the button in servicenow 'get Oauth token' and I connect with the address mail to allow the configuration.
Unfortunately, there is no solution using a service account. You must have a mail address knowing it s credentials so you can generate token