Parth Jani
Parth Jani

Reputation: 13

Unable to Retrieve API Clients and Assigned OAuth Scopes via Google Admin SDK in C# .NET

I am currently working on a C# .NET application that leverages the Google Admin SDK to manage administrative tasks within our organization. As part of this implementation, I require a method to programmatically retrieve the list of API clients and their assigned OAuth scopes, which are available in the Google Admin Console under Security > API Controls > Domain-wide Delegation.

After reviewing the documentation and available endpoints within the Google Admin SDK, I was unable to find any API that provides access to this information. I would like to inquire whether there is an existing method to achieve this within the SDK or an alternative approach that enables administrators to programmatically retrieve the list of API clients and their associated OAuth scopes.

I appreciate your time and assistance on this matter and look forward to your response.

Upvotes: 0

Views: 42

Answers (1)

qtxo
qtxo

Reputation: 1573

The only way to get that information is using the Admin Reports API, using the endpoint activities.list(applicationName: admin, eventName: AUTHORIZE_API_CLIENT_ACCESS)

Link to APIs explorer

But events older than 180 days are not available...

Upvotes: 0

Related Questions