taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
703 stars 87 forks source link

[REQUEST] Simple output on item check and simplification of Employee ID update. #302

Closed jarrodCoombes closed 1 year ago

jarrodCoombes commented 1 year ago

I have two requests:

  1. I need a way to check to see if an email exists or not. Currently I am using gam whatis <email> to do this, but if the email exists, it returns a whole page of info, all I really need a Exists - Object type or a Does not exist This is useful in scripting bulk operations, like user creation.

  2. Currently to create/update the employee ID field the syntax is gam create user <email> externalid organization <ID> could this not be simplified to something like gam create user <email> employeeID <id> ?

taers232c commented 1 year ago

Jarrod,

1: See: https://github.com/taers232c/GAMADV-XTD3/wiki/Aliases#determine-if-an-address-is-a-user-user-alias-group-or-group-alias

gam whatis <email> noinfo

  1. I'll look into this.

Ross

synapp commented 1 year ago

Github Had that URL for a Snack. Corrected Link https://github.com/taers232c/GAMADV-XTD3/wiki/Aliases#determine-if-an-address-is-a-user-user-alias-group-or-group-alias

jarrodCoombes commented 1 year ago

1: See: https://github.com/taers232c/GAMADV-XTD3/wiki/Aliases#determine-if-an-address-is-a-user-user-alias-group-or-group-alias

gam whatis <email> noinfo

Awesome! Not sure why I could not find that in the docs, but this has made me very happy! Also, thanks @synapp for this too!

  1. I'll look into this.

Great! Thanks @taers232c, and thanks for the fast reply!

taers232c commented 1 year ago
  1. Is done in 6.28.05

Added the following items to <UserMultiAttribute>:

Added the following items to <UserFieldName>: