How to add alias to multiple users using GAM

760 views
Skip to first unread message

Vicente Alovera

unread,
Oct 13, 2020, 12:52:14 PM10/13/20
to GAM for G Suite
How to add alias to multiple users using GAM

Ross Scroggs

unread,
Oct 13, 2020, 1:30:37 PM10/13/20
to google-ap...@googlegroups.com
Vicente,

Make a CSV file aliases.csv
alias,user
...
Command syntax: gam create alias|nickname <EmailAddress> user|group|target <UniqueID>|<EmailAddress>

Sample command:

gam csv aliases.csv gam create alias "~alias" user "~user"


Ross


On Tue, Oct 13, 2020 at 9:52 AM Vicente Alovera <vicente...@bayviewtechnology.com> wrote:
How to add alias to multiple users using GAM

--
You received this message because you are subscribed to the Google Groups "GAM for G Suite" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/c2996c78-3055-43f5-868c-749f1a5b6bf8n%40googlegroups.com.


--

Vicente Alovera

unread,
Oct 14, 2020, 2:23:21 PM10/14/20
to GAM for G Suite
Thank you for this 

Steve Larsen

unread,
Dec 11, 2021, 6:12:30 PM12/11/21
to google-ap...@googlegroups.com
What would be the most efficient way to add multiple aliases to a group of users if the data I have is formatted like this.

user,alias_list


Steve Larsen

unread,
Dec 11, 2021, 6:22:02 PM12/11/21
to google-ap...@googlegroups.com
Ok, so create alias uses <EmailAddressEntity> which will accept a comma separated list. so that data can be used as is

gam create alias|aliases <EmailAddressEntity> user|group|target <UniqueID>|<EmailAddress>

<EmailAddressEntity> ::=
        <EmailAddressList> | <FileSelector> | <CSVFileSelector> | <CSVkmdSelector> | <CSVDataSelector>


<EmailAddressList> ::= "<EmailAddress>(,<EmailAddress>)*"
Reply all
Reply to author
Forward
0 new messages