Example, Description – Google Message Security Batch Reference Guide User Manual
Page 228
![background image](/manuals/552791/228/background.png)
Batch Commands
231
[, sort=
[, start=
[, type_of_user=
Example
•
To list all of the aliases for a single user, use the example below. The return
values are a comma separated list of aliases for [email protected]:
listusers ALL, [email protected], targetOrg=100046262,
childorgs=1, aliases=1
•
To list all primary user addresses and associated aliases in an org hierarchy,
use the example below. The return values are in a list composed of primary
user addresses (PRIMARY_ADD is [null], ADDRESS is the primary address),
and of primary user address and that user’s aliases (PRIMARY_ADD is the
primary user address, ADDRESS is that user’s alias):
listusers ALL, targetOrg=[accountorg], childorgs=1,
fields=PRIMARY_ADD|ADDRESS, aliases=1, sort=primary_add:nd
•
To list a user address from an alias. The return values are the alias address
and the primary user address. In this case the return value is
[email protected] [email protected]
:
listusers [email protected], targetOrg=200046262,
childorgs=1, aliases=1, fields=ADDRESS|PRIMARY_ADD
•
To list all users starting the search at the sales organization, and sorting the
list by ascending user addresses:
listusers ALL, targetOrg=sales, sort=ADDRESS:a
•
To list users whose user address includes ‘alias’:
listusers %alias, targetOrg=sales
•
To list only the users’ organization IDs:
listusers ALL, targetOrg=Sales, childorgs=1, fields=IID
Description
Displays information about a set of users, filtered and sorted as requested.
•
The list is limited to 15,000 users.
•
It is important to set the targetOrg value if your authorization is limited to the
targetOrg or below. Otherwise the system will return an authorization error.
Batch parameter for listusers include: