Reputation: 31
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
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):
Further info: https://developers.google.com/admin-sdk/reports/v1/reference/activity-ref-appendix-a/admin-user-events#suspend-user
Upvotes: 1