I am currently using the G Suite Admin SDK API to retrieve user data. I want to check how long it takes for the user properties/fields to update.
After some checks I have realized that the User resources provided by the APIs Users:get and Users:list are not updated at the same time (I have checked this and I can tell that there is at least an offset of several minutes).
Is this the expected behaviour?
In order to reproduce this issue you can do as follows:
- Choose a Google user of your own.
- Log into the user account (log out first if you are already logged in)
- Check the API results for Users:get and Users:list. Specifically look for the
lastLoginTime
parameter value.
The expected lastLoginTime
value should be:
"2020-05-22T10:09:04.000Z"
However, this is what I get:
For Users:list
:
"lastLoginTime": "2020-05-21T09:25:33.000Z",
For Users:get
:
"lastLoginTime": "2020-05-22T10:09:04.000Z",
Thanks.