I am currently working on a simple Java application to query my organization's G Suite users. I am using the Google-provided Java API (Directory API). I am currently able to pull users, and their corresponding attributes using statements like the following:
String firstName = user.getName().getGivenName();
String lastName = user.getName().getFamilyName();
String email = user.getPrimaryEmail();
However, I do not know how to access attributes such as Employee ID, Employee type, department and title? I do not see any functions similar to the ones that I use to access first name, last name etc.
How do you access these values using the Java API? Any help is greatly appreciated!