paradox
paradox

Reputation: 73

How to get password reset frequency from Gsuite Admin SDK Apis

I need the to get password policy and password reset frequency of the Gsuite account through the gsuite Admin SDK Apis. But, I dont find any api doc regarding this.

https://developers.google.com/admin-sdk/

I need to fetch the password expiration time and policy using Oauth 2.0 google admin Sdk apis.

Upvotes: 1

Views: 301

Answers (1)

ziganotschka
ziganotschka

Reputation: 26836

You can use the Reports API to query various Login Audit Activity Events including Account password change

For this:

  • Use the method activities.list()
  • Set userKey to either all or a specific user email
  • Set applicationName to login
  • Set eventName to password_edit
  • If desired, you can narrow down the results by specifying additoinal parameters, like e.g. startTime, endTime or filters

Upvotes: 1

Related Questions