From 2dd1d46e49c8d4d9c166f9ad8bffe277d90d2795 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 4b58fcc3e3fa1..084522e975672 100644 --- a/docs/pages/reference/cli/tctl.mdx +++ b/docs/pages/reference/cli/tctl.mdx @@ -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