# Google groups login

**URL:** https://meta.discourse.org/t/google-groups-login/170938
**Category:** Support
**Created:** [November 22, 2020, 5:09pm UTC](https://meta.discourse.org/t/google-groups-login/170938 "2020-11-22T17:09:55Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![FlyingSwitzerland](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FlyingSwitzerland](https://meta.discourse.org/u/FlyingSwitzerland)
#### Post date: [November 22, 2020, 5:09pm UTC](https://meta.discourse.org/t/google-groups-login/170938/1 "2020-11-22T17:09:55Z")

</div>

Hello everyone,  
I’m having a group of users on google group and I want them to login to my discourse. I want them to login via the main google authentication page but they must be on my group list to access discourse, if not they shouldn’t be allowed to access.

May I ask you to tell me how to do so ?  
Sorry if it’s a duplicate.  
Have a great day everyone !

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 22, 2020, 5:41pm UTC](https://meta.discourse.org/t/google-groups-login/170938/2 "2020-11-22T17:41:45Z")

</div>

I think that the only way to do that is to import those users. . . . somehow, and then maybe turn on invite\_only.

I don’t think that there’s a way for Discourse to know who’s in your Google group.

---

<div class="post-metadata">

### Author: ![FlyingSwitzerland](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FlyingSwitzerland](https://meta.discourse.org/u/FlyingSwitzerland)
#### Post date: [November 22, 2020, 5:42pm UTC](https://meta.discourse.org/t/google-groups-login/170938/3 "2020-11-22T17:42:42Z")

</div>

Hello. Thank you for your answer. May I ask you, where to invite them and how to import them and to export them from google groups ?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 22, 2020, 5:44pm UTC](https://meta.discourse.org/t/google-groups-login/170938/4 "2020-11-22T17:44:04Z")

</div>

You can search for the #howto topics on invites and on importing Google Groups.

[How to send, configure, and accept Discourse invitation emails](https://meta.discourse.org/t/how-to-send-configure-and-accept-discourse-invitation-emails/124096), for example, but there are others. [Importing mailing lists (mbox, Listserv, Google Groups, emails, …)](https://meta.discourse.org/t/importing-mailing-lists-mbox-listserv-google-groups-emails/79773).

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [November 22, 2020, 5:48pm UTC](https://meta.discourse.org/t/google-groups-login/170938/5 "2020-11-22T17:48:32Z")

</div>

I think Google Takeout (and maybe even Google Groups itself) allows you to export your member list as CSV. You should then be able to use the bulk invite feature of Discourse.

The full mbox import seems to be overkill if you only want to import users. Mind, this is a one time thing. If new users join your Group, you’ll need to invite them to Discourse manually.

---

<div class="post-metadata">

### Author: ![FlyingSwitzerland](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FlyingSwitzerland](https://meta.discourse.org/u/FlyingSwitzerland)
#### Post date: [November 22, 2020, 6:01pm UTC](https://meta.discourse.org/t/google-groups-login/170938/6 "2020-11-22T18:01:55Z")

</div>

Thank you for your answer. Quick question, if I set an invitation code and send it to all my users, is that also a good solution ? I mean I send it to them in a newsletter for example.

---

<div class="post-metadata">

### Author: ![FlyingSwitzerland](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FlyingSwitzerland](https://meta.discourse.org/u/FlyingSwitzerland)
#### Post date: [November 22, 2020, 6:14pm UTC](https://meta.discourse.org/t/google-groups-login/170938/7 "2020-11-22T18:14:23Z")

</div>

Or can I do something like that :

A user may register via google ( [Configure Google login for Discourse](https://meta.discourse.org/t/configuring-google-login-for-discourse/15858) )  
And then I ask him/her for a private code ?

Or what do you recommend ? Like what’s the easiest way to do such thing and so we can avoid having to do everything manually ?

---

<div class="post-metadata">

### Author: ![FlyingSwitzerland](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FlyingSwitzerland](https://meta.discourse.org/u/FlyingSwitzerland)
#### Post date: [November 22, 2020, 6:14pm UTC](https://meta.discourse.org/t/google-groups-login/170938/8 "2020-11-22T18:14:58Z")

</div>

Or If someone is having (or had) the same situation than me, how did you manage to do?

---

<div class="post-metadata">

### Author: ![FlyingSwitzerland](https://avatars.discourse-cdn.com/v4/letter/f/96bed5/32.png) [@FlyingSwitzerland](https://meta.discourse.org/u/FlyingSwitzerland)
#### Post date: [January 10, 2021, 12:06pm UTC](https://meta.discourse.org/t/google-groups-login/170938/9 "2021-01-10T12:06:48Z")

</div>

Hello back everyone,

I found that you may use Firebase to login (sso) with discourse. Do you know if there’s a way to use your google groups users linked to firebase and then login to discourse ?

Thank you all for your help ! It’s much appreciated.
