Skip to content

Oauth login has to decide which org to place users in #11922

Closed
@Emyrk

Description

@Emyrk

coder/coderd/userauth.go

Lines 1332 to 1337 in 83eea2d

if len(organizations) > 0 {
// Add the user to the first organization. Once multi-organization
// support is added, we should enable a configuration map of user
// email to organization.
organizationID = organizations[0].ID
}

On first login for OIDC/Oauth we add the user to the default organization. This needs to be resolved.

Options:

  1. Always place users in the default org.
  2. Use role/group sync to figure out which org to place users.

blocked by #11934

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs decisionNeeds a higher-level decision to be unblocked.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions