src orgs members add

adds a user as a member to an organization.

Examples:

Add a member (alice) to an organization (abc-org):

$ src orgs members add -org-id=$(src org get -f '{{.ID}}' -name=abc-org) -username=alice

Usage

SH
$ src orgs members add [options]

Flags

NameDescriptionDefault Value
--dump-requestsLog GraphQL requests and responses to stdoutfalse
--get-curlPrint the curl command for executing this query and exit (WARNING: includes printing your access token!)false
--insecure-skip-verifySkip validation of TLS certificates against trusted chainsfalse
--org-idID of organization to which to add member. (required)``
--traceLog the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracingfalse
--user-agent-telemetryInclude the operating system and architecture in the User-Agent sent with requests to Sourcegraphtrue
--usernameUsername of user to add as member. (required)``