src users tag

add/remove a tag on a user.

Examples:

Add a tag "foo" to a user:

$ src users tag -user-id=$(src users get -f '{{.ID}}' -username=alice) -tag=foo

Remove a tag "foo" to a user:

$ src users tag -user-id=$(src users get -f '{{.ID}}' -username=alice) -remove -tag=foo

Related examples:

List all users with the "foo" tag:

$ src users list -tag=foo

Usage

SH
$ src users tag [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
--removeRemove the tag. (default: add the tag)false
--tagThe tag to set on the user.``
--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
--user-idThe ID of the user to tag.``