how to get suspended user status from google api using oauth -
i looking way google apis list of not-suspended users in organization, using oath authorization.
google profile api has oauth, user list returned not contain issuspended flag.
google provisioning api returns issuspended flag, far understand cannot oauth authorized.
are there other options have accomplish this?
yes, provisioning api works oauth 1.0 , 2.0. see docs , necessary scopes here.
if need users in entire google apps instance, use retrieve users in domains api call , filter out users issuspended = true
.
if need filter list down users under organizational unit (ou), use retrieving organization unit's immediate sibling users api call , filter down list users in ou , not disabled.
Comments
Post a Comment