Org Units
Create
gam create org '<New OU Name>' parent '<Path/To/Parent/OU>'
Delete
gam delete org '<Path/To/OU>'
Print Orgs
All the OUs
Without showing users
gam print orgs todrive
Minusercount
OUs with at least 1 user
gam print orgs minusercount 1
Maxusercount
With no users
gam print orgs maxusercount 0
FromParent
gam print orgs fromparent </Path/To/Top/OU> allfields todrive
Print UserCountsByOrgUnit
Todrive
gam print usercountsbyorgunit todrive
Quoting Rules
With Advanced GAM here are the quoting rules for specifying OUs and how to deal with OUs with spaces in their names.
One OU
Use double quotes
ou "/Path/To/Sub OU"
ou_and_children "/Path/To/Sub OU"
Multiple OUs
Use double quotes around list, single quotes around each OU that contains a space although you can use single quotes even if the OU doesn't have a space
ous "'/Path/To/OU1 With Space','/Path/To/OU2 With Space'"
ous_and_children "'/Path/To/OU With Space',/Path/To/NoSpaceOU"