You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Be sure to restart the server after changing these configuration values. Then,
366
+
attempt to log in, preferably with a user who has the `Owner` role.
367
+
368
+
The logs for a successful group sync look like this (human-readable):
330
369
331
-
Some common issues when enabling group sync.
370
+
```sh
371
+
[debu] coderd.userauth: got oidc claims request_id=49e86507-6842-4b0b-94d4-f245e62e49f3 source=id_token claim_fields="[aio aud email exp groups iat idp iss name nbf oid preferred_username rh sub tid uti ver]" blank=[]
332
372
333
-
#### User not being assigned / Group does not exist
[debu] coderd.userauth: got oidc claims request_id=49e86507-6842-4b0b-94d4-f245e62e49f3 source=merged claim_fields="[aio aud email exp family_name given_name groups iat idp iss name nbf oid picture preferred_username rh sub tid uti ver]" blank=[]
376
+
377
+
[debu] coderd: groups returned in oidc claims request_id=49e86507-6842-4b0b-94d4-f245e62e49f3 email=ben@coder.com username=ben len=3 groups="[c8048e91-f5c3-47e5-9693-834de84034ad 66ad2cc3-a42f-4574-a281-40d1922e5b65 70b48175-107b-4ad8-b405-4d888a1c466f]"
378
+
```
379
+
380
+
To view the full claim, the Owner role can visit this endpoint on their Coder
If you see an error like the following, you may have an invalid scope.
370
424
@@ -380,7 +434,7 @@ configuring the name of this scope.
380
434
The solution is to update the value of `CODER_OIDC_SCOPES` to the correct value
381
435
for the identity provider.
382
436
383
-
#### No `group` claim in the `got oidc claims` log
437
+
### No `group` claim in the `got oidc claims` log
384
438
385
439
Steps to troubleshoot.
386
440
@@ -396,26 +450,6 @@ Steps to troubleshoot.
396
450
- [Azure AD limit is 200, and omits groups if exceeded.](https://learn.microsoft.com/en-us/azure/active-directory/hybrid/connect/how-to-connect-fed-group-claims#options-for-applications-to-consume-group-information)
397
451
- [Okta limit is 100, and returns an error if exceeded.](https://developer.okta.com/docs/reference/api/oidc/#scope-dependent-claims-not-always-returned)
398
452
399
-
## Role sync (enterprise)
400
-
401
-
If your OpenID Connect provider supports roles claims, you can configure Coder
402
-
to synchronize roles in your auth provider to deployment-wide roles within
403
-
Coder.
404
-
405
-
Set the following in your Coder server [configuration](./configure.md).
406
-
407
-
```env
408
-
# Depending on your identity provider configuration, you may need to explicitly request a "roles" scope
409
-
CODER_OIDC_SCOPES=openid,profile,email,roles
410
-
411
-
# The following fields are required for role sync:
0 commit comments