--
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
I have a very rough powershell script to either clone a users groups to another user or purge a user from all groups. If you want a copy I can send it as a txt file.
Thanks/Dave
On Wed, Sep 19, 2012 at 10:30 AM, JRock <jamie...@tapjoy.com> wrote:
I can understand the thought process, but am unfamiliar with scripting. Has anyone wrote a script for removing a user from all groups?
I'd assume you would list the users info to get the group memberships, parse it, then pipe that date into a list/index and run a remove from group on that list for that user.
Hoping that I could just type in the username and then it would just remove all groups.
--
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
For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager
For all who enjoy hacked together powershell scripts, I present, groupsetV0.
Thanks/Dave
On Wed, Sep 19, 2012 at 10:52 AM, JP Connolly <jpcon...@saintannsny.org> wrote:
I'd love to take a look as well please!
On Wed, Sep 19, 2012 at 1:42 PM, JRock <jamie...@tapjoy.com> wrote:
That would be greatly appreciated. I think if I had a ground work I could likely adapt it to the specific needs.
On Wednesday, September 19, 2012 10:38:53 AM UTC-7, David Bailey wrote:
I have a very rough powershell script to either clone a users groups to another user or purge a user from all groups. If you want a copy I can send it as a txt file.
Thanks/Dave
On Wed, Sep 19, 2012 at 10:30 AM, JRock <jamie...@tapjoy.com> wrote:
I can understand the thought process, but am unfamiliar with scripting. Has anyone wrote a script for removing a user from all groups?
I'd assume you would list the users info to get the group memberships, parse it, then pipe that date into a list/index and run a remove from group on that list for that user.
Hoping that I could just type in the username and then it would just remove all groups.
--google-ap...@googlegroups.com
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
--David BaileyMultnomah CountyGoogle BSAGeneral Government/Open Source
--
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-manager+unsub...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager
--
JP Connolly
Director of Technology
Saint Ann's School129 Pierrepont St.
Brooklyn, NY 11201
--
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-manager+unsub...@googlegroups.com
For more options, visit this group at
https://groups.google.com/forum/#!forum/google-apps-manager
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/27fb8572-1174-4af6-bc40-6efaa8897401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<google-remove-user-from-all-groups.sh>
A script written by a true sed master; however, gam can do this directly. I can’t find this specifc command in the Wiki but it’s in the code.
Syntax: gam user <username>|group <groupname>|ou <ouname>|all users delete groupsExample: gam user f...@bar.com delete groups"user <username>|group <groupname>|ou <ouname>|all users” generates a list of users, maybe all of the users you have; use with extreme caution!
On Apr 7, 2015, at 1:34 PM, Roman T <rom...@gmail.com> wrote:
Attached is a simple bash script which removes user from all groups.
On Wednesday, September 19, 2012 at 1:30:11 PM UTC-4, JRock wrote:I can understand the thought process, but am unfamiliar with scripting. Has anyone wrote a script for removing a user from all groups?
I'd assume you would list the users info to get the group memberships, parse it, then pipe that date into a list/index and run a remove from group on that list for that user.
Hoping that I could just type in the username and then it would just remove all groups.--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
A script written by a true sed master; however, gam can do this directly. I can’t find this specifc command in the Wiki but it’s in the code.
Syntax: gam user <username>|group <groupname>|ou <ouname>|all users delete groupsExample: gam user f...@bar.com delete groups"user <username>|group <groupname>|ou <ouname>|all users” generates a list of users, maybe all of the users you have; use with extreme caution!
On Apr 7, 2015, at 1:34 PM, Roman T <rom...@gmail.com> wrote:
Attached is a simple bash script which removes user from all groups.
On Wednesday, September 19, 2012 at 1:30:11 PM UTC-4, JRock wrote:I can understand the thought process, but am unfamiliar with scripting. Has anyone wrote a script for removing a user from all groups?
I'd assume you would list the users info to get the group memberships, parse it, then pipe that date into a list/index and run a remove from group on that list for that user.
Hoping that I could just type in the username and then it would just remove all groups.--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-apps-manager@googlegroups.com.
There's no API call to get all groups a non-domain user is in so at best you'd run:
gam print groups | gam csv - gam update group ~Email delete extern...@domain.com
Which will try to remove the user from every single group. It'll take a long time and throw a lot of errors but should get the job done.
Jay
Hi Ross,I'm trying to delete an email address from all the groups. The output of using your command is "f...@bar.com is in 0 groups".But it actually is in many different groups.Any thoughts on how I can delete an email address that is not part of the domain from the groups?Thanks!
On Thursday, April 9, 2015 at 4:05:18 AM UTC+1, Ross Scroggs wrote:
A script written by a true sed master; however, gam can do this directly. I can’t find this specifc command in the Wiki but it’s in the code.
Syntax: gam user <username>|group <groupname>|ou <ouname>|all users delete groupsExample: gam user f...@bar.com delete groups"user <username>|group <groupname>|ou <ouname>|all users” generates a list of users, maybe all of the users you have; use with extreme caution!
On Apr 7, 2015, at 1:34 PM, Roman T <rom...@gmail.com> wrote:
Attached is a simple bash script which removes user from all groups.
On Wednesday, September 19, 2012 at 1:30:11 PM UTC-4, JRock wrote:I can understand the thought process, but am unfamiliar with scripting. Has anyone wrote a script for removing a user from all groups?
I'd assume you would list the users info to get the group memberships, parse it, then pipe that date into a list/index and run a remove from group on that list for that user.
Hoping that I could just type in the username and then it would just remove all groups.--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/27fb8572-1174-4af6-bc40-6efaa8897401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<google-remove-user-from-all-groups.sh>
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/7aeffb16-db74-4e17-a356-82122c69a321%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jay Lee
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/27fb8572-1174-4af6-bc40-6efaa8897401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<google-remove-user-from-all-groups.sh>
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/7aeffb16-db74-4e17-a356-82122c69a321%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--Jay Lee
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/27fb8572-1174-4af6-bc40-6efaa8897401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<google-remove-user-from-all-groups.sh>
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/7aeffb16-db74-4e17-a356-82122c69a321%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
----Jay Lee
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/fd20b3aa-6763-4ce9-92c7-e675545097a2%40googlegroups.com.
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
--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/62250dd6-7693-4755-99c6-7c355e1f7724%40googlegroups.com.
HI Roos,
Thanks a lot, working fine, we have asked the same many times…
Now it will save our time lot…… Thanks.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/14E0FEC3-6700-4184-80B3-A281053E6B12%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Please follow the attached hyperlink to an important disclaimer
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.