Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PostUser requires organization #11925

Closed
@Emyrk

Description

@Emyrk

coder/coderd/users.go

Lines 352 to 370 in993c1a6

}else {
// If no organization is provided, add the user to the first
// organization.
organizations,err:=api.Database.GetOrganizations(ctx)
iferr!=nil {
httpapi.Write(ctx,rw,http.StatusInternalServerError, codersdk.Response{
Message:"Internal error fetching orgs.",
Detail:err.Error(),
})
return
}
iflen(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.
req.OrganizationID=organizations[0].ID
}
}

Currently the org component of the request is not required.

Blocked by#11961

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiArea: HTTP API

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp