Skip to content

Commit

Permalink
Add documentation for google transitive groups (argoproj#9487)
Browse files Browse the repository at this point in the history
Signed-off-by: Trung <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
Co-authored-by: pasha-codefresh <[email protected]>
  • Loading branch information
3 people authored and Hariharasuthan99 committed Jun 16, 2024
1 parent 57f18af commit ea5a5bc
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions docs/operator-manual/user-management/google.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,17 +142,6 @@ data:

## OpenID Connect plus Google Groups using Dex

---
!!! warning "Limited group information"

When using this feature you'll only receive the list of groups the user is a direct member.

So, lets say you have this hierarchy of groups and subgroups:
`[email protected] --> [email protected] --> [email protected] --> [email protected]`
The only group you would receive through Dex would be `[email protected]`

---

We're going to use Dex's `google` connector to get additional Google Groups information from your users, allowing you to use group membership on your RBAC, i.e., giving `admin` role to the whole `[email protected]` group.

This connector uses two different credentials:
Expand Down Expand Up @@ -229,6 +218,20 @@ Go through the same steps as in [OpenID Connect using Dex](#openid-connect-using
5. Login to Argo CD and go to the "User info" section, were you should see the groups you're member
![User info](../../assets/google-groups-membership.png)
6. Now you can use groups email addresses to give RBAC permissions
7. Dex (> v2.31.0) can also be configure to fetch transitive group membership as follows:

dex.config: |
connectors:
- config:
redirectURI: https://argocd.example.com/api/dex/callback
clientID: XXXXXXXXXXXXX.apps.googleusercontent.com
clientSecret: XXXXXXXXXXXXX
serviceAccountFilePath: /tmp/oidc/googleAuth.json
adminEmail: [email protected]
fetchTransitiveGroupMembership: True
type: google
id: google
name: Google
### References

Expand Down

0 comments on commit ea5a5bc

Please sign in to comment.