# OIDC Managed Groups

**URL:** <https://discuss.hashicorp.com/t/oidc-managed-groups/26422>\
**Category:** Boundary\
**Created:** [July 6, 2021, 4:47pm UTC](https://discuss.hashicorp.com/t/oidc-managed-groups/26422 "2021-07-06T16:47:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpanihin24](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dpanihin24/32/20521_2.png) [@dpanihin24](https://discuss.hashicorp.com/u/dpanihin24)\
**Post date:** [July 6, 2021, 4:47pm UTC](https://discuss.hashicorp.com/t/oidc-managed-groups/26422/1 "2021-07-06T16:47:28Z")

</div>

Hello,  
I cant find some explanation for OIDC Managed groups, more precisely how to config this feature.  
I have already configured OKTA oidc provider and i am able to connect to system.  
Can you give some simple example how i can configure claims to groups???

Thank you

---

<div class="post-metadata">

**Author:** ![Admir-Hadzic-MOP](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/admir-hadzic-mop/32/18269_2.png) [@Admir-Hadzic-MOP](https://discuss.hashicorp.com/u/Admir-Hadzic-MOP)\
**Post date:** [July 9, 2021, 9:36am UTC](https://discuss.hashicorp.com/t/oidc-managed-groups/26422/2 "2021-07-09T09:36:24Z")

</div>

Yes, the official documentation doesn’t offer any examples. Terraform Registry for Boundary doesn’t contain any filtering blocks, and creating/modifying groups in console lack filtering options as well.

Anyone has any clues on how can we set it up?

---

<div class="post-metadata">

**Author:** ![dpanihin24](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dpanihin24/32/20521_2.png) [@dpanihin24](https://discuss.hashicorp.com/u/dpanihin24)\
**Post date:** [July 9, 2021, 9:41pm UTC](https://discuss.hashicorp.com/t/oidc-managed-groups/26422/3 "2021-07-09T21:41:13Z")

</div>

I have managed it. Will post explanation later

---

<div class="post-metadata">

**Author:** ![dpanihin24](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dpanihin24/32/20521_2.png) [@dpanihin24](https://discuss.hashicorp.com/u/dpanihin24)\
**Post date:** [July 10, 2021, 2:38pm UTC](https://discuss.hashicorp.com/t/oidc-managed-groups/26422/4 "2021-07-10T14:38:35Z")

</div>

Firstable OIDC Auth-method should be properly configured. Official doc describes minimal flow for authenticaton.

1. Once there is OIDC auth method configured need to add additional claims.  
By default it request only **openid** claim scope. For getting more data (Fullname, email, groups …) should add it to:  
Auth Methods → \< OIDC-Method \> → Claims Scopes  
**Following scopes:**  
email  
profile  
groups

2. Now we can create managed group with filter (CLI only).  
For example user member in:  
**groups: [group1, group2, group3]**  
_boundary managed-groups create oidc -name \< NAME \> -auth-method-id \<ID\_OF\_OIDC\_METHOD\> -filter ‘“group1” in “/userinfo/groups”’_  
If user is member in **group1** he will be added after login to our managed group

3. Add created group as principal to some role:  
_boundary roles add-principals -id \< ROLE\_ID \> -principal=\< MANAGED\_GROUP\_ID \>_

seems thats all

---

<div class="post-metadata">

**Author:** ![drdukes](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/drdukes/32/18978_2.png) [@drdukes](https://discuss.hashicorp.com/u/drdukes)\
**Post date:** [July 21, 2021, 4:14am UTC](https://discuss.hashicorp.com/t/oidc-managed-groups/26422/5 "2021-07-21T04:14:12Z")

</div>

@dpanihin24 Good info. I will try to work with these steps. I would LOVE to know how you pieced together these steps. What resources did you use?

Can someone from Hashicorp provide a documentation resource for managing group access with an OIDC method?

It would be ideal for my use case to allow auth0 managed Google accounts access to my Boundary instance. Thanks!

---

<div class="post-metadata">

**Author:** ![dpanihin24](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/dpanihin24/32/20521_2.png) [@dpanihin24](https://discuss.hashicorp.com/u/dpanihin24)\
**Post date:** [July 21, 2021, 1:32pm UTC](https://discuss.hashicorp.com/t/oidc-managed-groups/26422/6 "2021-07-21T13:32:29Z")

</div>

### 

I am using OKTA. I have configured dev OKTA account and played with it.  
Part of info i took from official Hashicorp’s docs. Lots info its knowledge in OKTA - how it works.

### 

> **[OIDC authentication with Auth0 | Boundary | HashiCorp Developer](https://developer.hashicorp.com/boundary/tutorials/identity-management/oidc-auth0)**
>
> Configure the Open-ID Connect (OIDC) auth method with Boundary and Auth0.

> **[Filtering - managed groups | Boundary | HashiCorp Developer](https://developer.hashicorp.com/boundary/docs/rbac/users/managed-groups)**
>
> Learn how to configure filters for managed groups. View search filter attributes and examples of filters for OIDC and LDAP managed groups.

---

<div class="post-metadata">

**Author:** ![PPacent](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/ppacent/32/12960_2.png) [@PPacent](https://discuss.hashicorp.com/u/PPacent)\
**Post date:** [November 15, 2021, 7:50pm UTC](https://discuss.hashicorp.com/t/oidc-managed-groups/26422/7 "2021-11-15T19:50:05Z")

</div>

Hi folks! For anyone interested there’s now a Boundary tutorial for configuring managed groups via the CLI and Terraform using Azure AD, Okta, and Auth0. This same pattern can be applied to other Open ID Connect (OIDC) identity providers.

> **[Manage OIDC IdP Groups | Boundary - HashiCorp Learn](https://learn.hashicorp.com/tutorials/boundary/oidc-idp-groups?in=boundary%2Fconfiguration)**
>
> Instructions to configure Open-ID Connect (OIDC) Managed Groups using Identity 
> Providers (IdP) like Auth0, Okta or Azure Active Directory.

---

<div class="post-metadata">

**Author:** ![pranesh.kumar](https://avatars.discourse-cdn.com/v4/letter/p/a87d85/32.png) [@pranesh.kumar](https://discuss.hashicorp.com/u/pranesh.kumar)\
**Post date:** [March 30, 2023, 11:55am UTC](https://discuss.hashicorp.com/t/oidc-managed-groups/26422/8 "2023-03-30T11:55:34Z")

</div>

Hi ,  
I am trying to setup google oidc auth for boundary  
is there any native support for google oidc with boundary to implement user mapping?  
Based on fetching group\_claims from google workspace and add filter to boundary managed groups
