beautypg.com

Google Message Security Batch Reference Guide User Manual

Page 19

background image

20

This example uses the ‘Sales’ organization which has two domains,
‘@sales.jumboinc.com’ and ‘@support.jumboinc.com’. It returns all of the
users whose addresses end with ‘sales.jumboinc.com’.

listusers sales.jumboinc.com$, targetOrg=Sales, aliases=0,

childorgs=1, sort=ADDRESS:a, fields=ADDRESS

The listusers command searches for all user addresses that end with
‘sales.jumboinc.com’. The $ flag targets the search to text ending with the
given address string ‘sales.jumboinc.com’.

The command searches all users in the Sales organization.

This list includes no aliases. It returns the primary user addressees only.

It searches all sub-organizations (childorgs).

It returns a list sorted by ascending user addresses.

And it returns only the address fields instead of the default addresses and
orgname fields.

3.

Select and copy all of the lines in the Executed section of the Batch Results
page.

4.

Open a text editor (if using Microsoft Notepad, turn word-wrap off) and paste
the text. Save the file using the file extension “.csv”.

5.

Start Excel or any other spreadsheet application, and open the .csv file
saved in step 4.

a. Create a column with the email addresses.

b. Add a column to the left of the addresses column.

c.

Fill that column with the command: modifyuser

d. For each field you wish to modify, create a column to the right of the

addresses column. In each column row, type in the = new value>. These are called field-value pairs.

e. Save the file again as a .csv file.

Note:

See “modifyuser” on page 241 or “listusers” on page 230 for more

information. In the Administration Console, click the Batch Command
Reference link on the Orgs and Users > Batch page for a link to modifyuser
command. This command reference page lists links to all user fields you can
modify. In turn, each batch field reference page lists the different values you
can give to the field=value pairs.

6.

Load the file into a text editor.

Replace all occurrences of

“modifyuser,”

with

“modifyuser “

to remove the

comma and add a space. Make sure there is a comma between the user’s
address and the fields, and between each field=value pair. The result should
look something like this example:

modifyuser [email protected], junkmail_filter=0,

virus_notify=9

7.

Save the result as a .txt file

.