Skip to content

Commit

Permalink
Fix tctl users add reference examples (#48466)
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 authored Nov 6, 2024
1 parent 1e5df75 commit f0e7924
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 @@ -1641,11 +1641,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 f0e7924

Please sign in to comment.