Thomas Weilgaard Yde
Thomas Weilgaard Yde

Reputation: 31

Need to find out when a user was suspended

I can't see the information anywhere. When I pull the users.List i only see if a user is suspended but not when the account was suspended. The information is visible on the user page in ADMIN, so the information has to exist somewhere.

Upvotes: 1

Views: 2043

Answers (1)

Peter
Peter

Reputation: 5601

You can get the date of a user suspension by looking for the SUSPEND_USER event in the Admin-SDK Reports API.

You can use the "Try this API" feature here: https://developers.google.com/admin-sdk/reports/v1/reference/activities/list and provide the following values (leave other blank by default):

  • userKey: all
  • applicationName: admin
  • eventName: SUSPEND_USER

Further info: https://developers.google.com/admin-sdk/reports/v1/reference/activity-ref-appendix-a/admin-user-events#suspend-user

Upvotes: 1

Related Questions