Script the deletion of suspended people from G Suite who have never logged in
#23 (comment 216037) has identified that there is a large number of suspended people who have never logged into G Suite.
When we sync users, instead of suspending all users who are cancelled in Lookup, query Google for those who have never logged in and delete those with no logins, suspending the rest.
The Google user object has a 'lastLoginTime' which we could use to work out if someone has logged in at all: https://developers.google.com/admin-sdk/directory/reference/rest/v1/users#User
Edited by Dr Abraham Martin