# User

Create and manage server users

* [`sfp server user add`](#sfp-server-user-add)
* [`sfp server user delete`](#sfp-server-user-delete)

## `sfp server user add`

This command adds a user to sfp/sfops backend db

```
USAGE
  $ sfp server user add -f <value> -l <value> --target-email <value> -m <value> [--json] [--repository <value>] [-e
    <value>] [-t <value>] [--sfp-server-url <value>] [-r owner|member] [-g <value>...] [--loglevel
    trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -e, --email=<value>               Email address for authenticated user. Ignored if --application-token is provided.
                                    Can be set via SFP_SERVER_USER env var.
  -f, --firstname=<value>           (required) Firstname of the user
  -g, --logsgroupsymbol=<value>...  Symbol used by CICD platform to group/collapse logs in the console. Provide an
                                    opening group, and an optional closing group symbol.
  -l, --lastname=<value>            (required) Lastname of the user
  -m, --team=<value>                (required) Team the user belongs to
  -r, --role=<option>               [default: member] Role of the user, could be owner/member
                                    <options: owner|member>
  -t, --application-token=<value>   Application token for CI/CD authentication. Can be set via SFP_SERVER_TOKEN env var
                                    (CLI flags take precedence over env vars).
      --loglevel=<option>           [default: info] logging level for this command invocation
                                    <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
      --repository=<value>          The repository identifier. E.g `owner/repo` for GitHub/GitLab or `org/project/repo`
                                    for Azure DevOps
      --sfp-server-url=<value>      URL of the SFP server. Can be set via SFP_SERVER_URL env var or config: sfp
                                    config:set server-url
      --target-email=<value>        (required) Email address of the user to add

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  This command adds a user to sfp/sfops backend db

EXAMPLES
  $ sfp server user add --firstname "John" --lastname "Doe" --target-email "john@example.com" --team "engineering" --role member
```

*See code:* [*src/commands/server/user/add.ts*](https://source.flxbl.io/flxbl/sfp-pro)

## `sfp server user delete`

This command deletes a user to sfp/sfops backend db

```
USAGE
  $ sfp server user delete -m <value> --target-email <value> [-j] [--repository <value>] [-e <value>] [-t <value>]
    [--sfp-server-url <value>] [-g <value>...] [--loglevel
    trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL]

FLAGS
  -e, --email=<value>               Email address for authenticated user. Ignored if --application-token is provided.
                                    Can be set via SFP_SERVER_USER env var.
  -g, --logsgroupsymbol=<value>...  Symbol used by CICD platform to group/collapse logs in the console. Provide an
                                    opening group, and an optional closing group symbol.
  -j, --json                        Use json format
  -m, --team=<value>                (required) Team the user belongs to
  -t, --application-token=<value>   Application token for CI/CD authentication. Can be set via SFP_SERVER_TOKEN env var
                                    (CLI flags take precedence over env vars).
      --loglevel=<option>           [default: info] logging level for this command invocation
                                    <options: trace|debug|info|warn|error|fatal|TRACE|DEBUG|INFO|WARN|ERROR|FATAL>
      --repository=<value>          The repository identifier. E.g `owner/repo` for GitHub/GitLab or `org/project/repo`
                                    for Azure DevOps
      --sfp-server-url=<value>      URL of the SFP server. Can be set via SFP_SERVER_URL env var or config: sfp
                                    config:set server-url
      --target-email=<value>        (required) Email address(es) of the user(s) to remove (comma-separated for multiple)

DESCRIPTION
  This command deletes a user to sfp/sfops backend db

EXAMPLES
  $ sfp server user delete --team engineering --target-email "john@example.com"

  $ sfp server user delete --team engineering --target-email "john@example.com,jane@example.com"
```

*See code:* [*src/commands/server/user/delete.ts*](https://source.flxbl.io/flxbl/sfp-pro)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.flxbl.io/flxbl/sfp/sfp-community/cli-reference-v51-release-v3/server/user.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
