beautypg.com

Syntax, Example, Description – Google Message Security Batch Reference Guide User Manual

Page 219

background image

222

Syntax

listorgs

[ , targetOrg= ] [ , childorgs=<0/No | 1/Yes> ]

[ , sort= ] [ , fields= ] [ , start= ]

[ , end= ]

Example

Batch command interface examples:

To list all orgs under the sales organization, and sort these by the org’s ID in
numeric descending order:

listorgs ALL, targetOrg=sales, sort=IID:nd

To list all orgs that contain ‘POP’ in the organization’s name:

listorgs %POP, targetOrg=sales

To list all organizations listing these IM field values, and show from line 25 to
49:

listorgs ALL, targetOrg=sales,

fields=im_enable|im_external_enable|im_proto_enale,start=25,end=49

To list all organizations starting with Sales, and list the localized language and
timezone:

listorgs ALL, targetOrg=Sales, childorgs=1,

fields=lang_locale|timezone

To list all organizations starting with Sales, and list the creator, support
contact, default user field values:

listorgs ALL, targetOrg=Sales, childorgs=1,

fields=creator|support_contact|default_user

To list the language for all orgs under Sales:

listorgs ALL, targetOrg=Sales, childorgs=1, fields=lang_locale

Description

Displays the iid and org name of a set of orgs, filtering and sorting as requested.

The list is limited to 15,000 organizations.

It is important to set the targetOrg value when using this command. Otherwise
the system will return an authorization error if your org listing is outside of your
administrative authority.

Batch parameter options for listorgs incude: