From da171ddb470731cd86daea975ed0f1d016dfb90c Mon Sep 17 00:00:00 2001 From: Paul Gottschling Date: Tue, 5 Nov 2024 13:50:35 -0500 Subject: [PATCH] Fix `tctl users add` reference examples 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. --- docs/pages/reference/cli/tctl.mdx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/pages/reference/cli/tctl.mdx b/docs/pages/reference/cli/tctl.mdx index b83e35f76735c..d79863d0f5d3c 100644 --- a/docs/pages/reference/cli/tctl.mdx +++ b/docs/pages/reference/cli/tctl.mdx @@ -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