I use the following code in a java web application to try to get all users of a group:
GoogleCredential credential = GoogleCredential.fromStream(Util.class.g
As JSON credentials is not supported serviceAccountUser I've done workaround: make credential copy.
See code here: https://stackoverflow.com/a/42313446/548473