add additional doamins / nicknames to sub-organisational units

112 views
Skip to first unread message

Grant Joslin

unread,
Aug 6, 2012, 5:53:30 PM8/6/12
to google-ap...@googlegroups.com
Hi Everyone,

I'm new to both Google Apps administration and the world of python / powershell scripting. So I am using GAM for the moment to get things done without having to do much coding myself. Special thanks to Jay for providing such a tool free of charge. You have no idea the amount of time it i saving me.

My situation is, that I need to be able to download the users in OU's to be able to then add additional domains / nicknames to these users. Now I know I can just download all users, but how can I divide them up into the right OU's and then append the appropriate domain? I am talking about 150 OU's and about 70,000 users, so I am trying to find the most efficient way. I noticed that when I set a small bunch of groups, modified the settings, then added the group membership, that the script took a long time to complete.

Thanks again for a great script and any advice people can offer.

Grant 


Graham Ingleby

unread,
Aug 7, 2012, 5:23:10 AM8/7/12
to google-ap...@googlegroups.com
Hi Grant

You can use the GAM PRINT USERS command to get a list of users and their OU and send this to a csv file by adding:
 > filename.csv, 
you can then use this information to create the alias commands to update the users
gam print users [firstname] [lastname] [username] [ou] [suspended] [changepassword] [agreed2terms] [admin] [aliases] [groups]

gam create alias <alias> user <user name>

Regards,

Graham




Grant 


--
You received this message because you are subscribed to the "Google Apps Manager" group.
To post to this group, send email to
google-ap...@googlegroups.com
To unsubscribe from this group, send email to
google-apps-man...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager


Ancoris - Specialist Reseller of the Year 2011

This e-mail message has been scanned and cleared by Postini / Google Message Security. This message is for the named person's use only. If you receive this message in error, please delete it and notify the sender. Ancoris reserves the right to monitor all e-mail communications through its networks. Ancoris Limited, Registered in England Number: 04830784, Registered address: 5a Frascati Way, Maidenhead, Berkshire SL6 4UY. Trading Address: Lily Hill House, Lily Hill Road, Bracknell, Berkshire RG12 2SJ


Grant Joslin

unread,
Aug 7, 2012, 4:04:25 PM8/7/12
to google-ap...@googlegroups.com
Hi Graham,

thanks for that, I totally missed that print users could include OU's etc, and only saw it in info user. This makes life much much easier, I knew I missed something obvious.

Ta,

Grant


On Tuesday, 7 August 2012 19:23:10 UTC+10, Graham Ingleby wrote:
Hi Grant

You can use the GAM PRINT USERS command to get a list of users and their OU and send this to a csv file by adding:
 > filename.csv, 
you can then use this information to create the alias commands to update the users
gam print users [firstname] [lastname] [username] [ou] [suspended] [changepassword] [agreed2terms] [admin] [aliases] [groups]

gam create alias <alias> user <user name>

Regards,

Graham



On 6 August 2012 22:53, Grant Joslin <grant....@syd.catholic.edu.au> wrote:
Hi Everyone,

I'm new to both Google Apps administration and the world of python / powershell scripting. So I am using GAM for the moment to get things done without having to do much coding myself. Special thanks to Jay for providing such a tool free of charge. You have no idea the amount of time it i saving me.

My situation is, that I need to be able to download the users in OU's to be able to then add additional domains / nicknames to these users. Now I know I can just download all users, but how can I divide them up into the right OU's and then append the appropriate domain? I am talking about 150 OU's and about 70,000 users, so I am trying to find the most efficient way. I noticed that when I set a small bunch of groups, modified the settings, then added the group membership, that the script took a long time to complete.

Thanks again for a great script and any advice people can offer.

Grant 


--
You received this message because you are subscribed to the "Google Apps Manager" group.
To post to this group, send email to

To unsubscribe from this group, send email to

For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager

Ancoris - Specialist Reseller of the Year 2011

This e-mail message has been scanned and cleared by Postini / Google Message Security. This message is for the named person's use only. If you receive this message in error, please delete it and notify the sender. Ancoris reserves the right to monitor all e-mail communications through its networks. Ancoris Limited, Registered in England Number: 04830784, Registered address: 5a Frascati Way, Maidenhead, Berkshire SL6 4UY. Trading Address: Lily Hill House, Lily Hill Road, Bracknell, Berkshire RG12 2SJ



On Tuesday, 7 August 2012 19:23:10 UTC+10, Graham Ingleby wrote:
Hi Grant

You can use the GAM PRINT USERS command to get a list of users and their OU and send this to a csv file by adding:
 > filename.csv, 
you can then use this information to create the alias commands to update the users
gam print users [firstname] [lastname] [username] [ou] [suspended] [changepassword] [agreed2terms] [admin] [aliases] [groups]

gam create alias <alias> user <user name>

Regards,

Graham



On 6 August 2012 22:53, Grant Joslin <grant....@syd.catholic.edu.au> wrote:
Hi Everyone,

I'm new to both Google Apps administration and the world of python / powershell scripting. So I am using GAM for the moment to get things done without having to do much coding myself. Special thanks to Jay for providing such a tool free of charge. You have no idea the amount of time it i saving me.

My situation is, that I need to be able to download the users in OU's to be able to then add additional domains / nicknames to these users. Now I know I can just download all users, but how can I divide them up into the right OU's and then append the appropriate domain? I am talking about 150 OU's and about 70,000 users, so I am trying to find the most efficient way. I noticed that when I set a small bunch of groups, modified the settings, then added the group membership, that the script took a long time to complete.

Thanks again for a great script and any advice people can offer.

Grant 


--
You received this message because you are subscribed to the "Google Apps Manager" group.
To post to this group, send email to

To unsubscribe from this group, send email to

For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager

Ancoris - Specialist Reseller of the Year 2011

This e-mail message has been scanned and cleared by Postini / Google Message Security. This message is for the named person's use only. If you receive this message in error, please delete it and notify the sender. Ancoris reserves the right to monitor all e-mail communications through its networks. Ancoris Limited, Registered in England Number: 04830784, Registered address: 5a Frascati Way, Maidenhead, Berkshire SL6 4UY. Trading Address: Lily Hill House, Lily Hill Road, Bracknell, Berkshire RG12 2SJ



On Tuesday, 7 August 2012 19:23:10 UTC+10, Graham Ingleby wrote:
Hi Grant

You can use the GAM PRINT USERS command to get a list of users and their OU and send this to a csv file by adding:
 > filename.csv, 
you can then use this information to create the alias commands to update the users
gam print users [firstname] [lastname] [username] [ou] [suspended] [changepassword] [agreed2terms] [admin] [aliases] [groups]

gam create alias <alias> user <user name>

Regards,

Graham



On 6 August 2012 22:53, Grant Joslin <grant....@syd.catholic.edu.au> wrote:
Hi Everyone,

I'm new to both Google Apps administration and the world of python / powershell scripting. So I am using GAM for the moment to get things done without having to do much coding myself. Special thanks to Jay for providing such a tool free of charge. You have no idea the amount of time it i saving me.

My situation is, that I need to be able to download the users in OU's to be able to then add additional domains / nicknames to these users. Now I know I can just download all users, but how can I divide them up into the right OU's and then append the appropriate domain? I am talking about 150 OU's and about 70,000 users, so I am trying to find the most efficient way. I noticed that when I set a small bunch of groups, modified the settings, then added the group membership, that the script took a long time to complete.

Thanks again for a great script and any advice people can offer.

Grant 


--
You received this message because you are subscribed to the "Google Apps Manager" group.
To post to this group, send email to

To unsubscribe from this group, send email to

For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager

Graham Ingleby

unread,
Aug 8, 2012, 4:46:14 AM8/8/12
to google-ap...@googlegroups.com

No problem

That does make me think that, on the project web site, it would make sense to move some/all the CSV output commands to the "managing" section, so all user commands are together? Any thoughts Jay?




To unsubscribe from this group, send email to

For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager

Jay Lee

unread,
Aug 8, 2012, 7:40:40 AM8/8/12
to google-ap...@googlegroups.com
I think it makes sense to leave it as is with CSV reports having their own page, The User/Alias/Group/Calendar Prov Wiki page is already so long that the table of contents nearly flows off the bottom of the initial web page view of the page.

Regards,

Jay Lee
LCS Deployment Lead   |  ⚡ Dito
Reply all
Reply to author
Forward
0 new messages