Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
I am trying to create a script that revokes all Google Workspace sessions for all users in my organization, but it's failing with "Invalid Input" when trying to get a list of users in my directory.
Please could you help identify what additional inputs are required, as from the documentation, it seemed like the only one was "customer" (or "domain").
I am trying to create a script that revokes all Google Workspace sessions for all users in my organization, but it's failing with "Invalid Input" when trying to get a list of users in my directory.
Please could you help identify what additional inputs are required, as from the documentation, it seemed like the only one was "customer" (or "domain").
Code:
Error:
Version information: