Skip to content

Commit

Permalink
Fix tctl users add reference examples
Browse files Browse the repository at this point in the history
Closes #10574

- Present the examples with a correct use of the `logins` flag
- Since the current examples overlap, just use one

The remaining issues identified by #10574 are already resolved or out of
date.
  • Loading branch information
ptgott committed Nov 14, 2024
1 parent 879426a commit b620542
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/pages/reference/cli/tctl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1624,11 +1624,9 @@ These flags are available for all commands `--debug, --config`. Run
### Examples

```code
# Adds teleport user "joe" with mappings to
# OS users and {{ internal.logins }} to "joe" and "ubuntu"
$ tctl users add joe --roles=access,requester joe,ubuntu
# Adds Teleport user "joe" with mappings to the editor role
$ tctl users add joe --roles=editor,reviewer
# Adds Teleport user "joe" with the "access" and "requester" roles and
# permissions to assume the "joe" and "ubuntu" logins
$ tctl users add joe --roles=access,requester --logins=joe,ubuntu
```

## tctl users ls
Expand Down

0 comments on commit b620542

Please sign in to comment.