Skip to content

Allow removing a user from the default organization #14635

Closed
grepdemos/coder
#4
@Emyrk

Description

@Emyrk

Remove this guardrail.

coder/coderd/members.go

Lines 118 to 129 in 2a9234e

if organization.IsDefault {
// Multi-organizations is currently an experiment, which means it is feasible
// for a deployment to enable, then disable this. To maintain backwards
// compatibility, this safety is necessary.
// TODO: Remove this check when multi-organizations is fully supported.
httpapi.Write(ctx, rw, http.StatusBadRequest, codersdk.Response{
Message: "Removing members from the default organization is not supported.",
Detail: "Multi-organizations is currently an experiment, and until it is fully supported, the default org should be protected.",
Validations: nil,
})
return
}

Verify:

  • UI will still load and function if a user is in 0 orgs without a premium license.
  • Verify user is removed from groups if they are removed from an org.
  • Their workspaces remain orphaned. (This is correct)

Metadata

Metadata

Assignees

Labels

multi-orgtemporary label for multiple organizations related work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions