# Google OAuth2  and Teams configuration

**URL:** <https://forum.ansible.com/t/google-oauth2-and-teams-configuration/36022>\
**Category:** AWX Project\
**Tags:** gcp, awx\
**Created:** [November 22, 2021, 11:54am UTC](https://forum.ansible.com/t/google-oauth2-and-teams-configuration/36022 "2021-11-22T11:54:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cedric\_Cheron](https://avatars.discourse-cdn.com/v4/letter/c/ecb155/32.png) [@Cedric\_Cheron](https://forum.ansible.com/u/Cedric_Cheron)\
**Post date:** [November 22, 2021, 11:54am UTC](https://forum.ansible.com/t/google-oauth2-and-teams-configuration/36022/1 "2021-11-22T11:54:30Z")

</div>

Hi,

We are assessing the use of AWX to automate some tasks.  
Our hosts are located in different GCP projects within the same GCP organization.  
Each project already have a Google Group configured for access.  
We want to set up the Google OAuth2 authentication, and automatically generate teams to match these Google Groups in order for the users to only access hosts they have access to.

Is there a way to accomplish this without developing some custom code ?

---

<div class="post-metadata">

**Author:** ![Ansible\_Madness1](https://avatars.discourse-cdn.com/v4/letter/a/8491ac/32.png) [@Ansible\_Madness1](https://forum.ansible.com/u/Ansible_Madness1)\
**Post date:** [August 25, 2022, 7:04am UTC](https://forum.ansible.com/t/google-oauth2-and-teams-configuration/36022/2 "2022-08-25T07:04:31Z")

</div>

Merely curious if you managed to figure out AWX with OAuth2 team mappings… I would like to map based on email groups of users (if this is even possible with OAuth2) to various teams.
