Skip to content

Commit

Permalink
fix: update "org generate password" help to say --on-behalf-of works …
Browse files Browse the repository at this point in the history
…for only locally-created users
  • Loading branch information
jshackell-sfdc committed Oct 6, 2023
1 parent b206632 commit b20d852
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions messages/password.generate.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Generate a random password for scratch org users.

# description

By default, new scratch orgs contain one admin user with no password. Use this command to generate or change a password for any scratch org user. After it's set, you can’t unset a password, you can only change it.
By default, new scratch orgs contain one admin user with no password. Use this command to generate or change a password for this admin user. After it's set, you can’t unset a password, you can only change it.

You can also use the --on-behalf-of flag to generate a password for a scratch org user that you've created locally with the "org create user" command. This command doesn't work for users you created in the scratch org using Setup.

To change the password strength, set the --complexity flag to a value between 0 and 5. Each value specifies the types of characters used in the generated password:

Expand All @@ -31,13 +33,13 @@ To see a password that was previously generated, run "org display user".

<%= config.bin %> <%= command.id %> --complexity 3

- Generate a password for the specified users in the default scratch org:
- Generate a password for the specified users in the default scratch org; these users must have been created locally with the "org create user" command:

<%= config.bin %> <%= command.id %> --on-behalf-of [email protected] --on-behalf-of [email protected] --on-behalf-of [email protected]

# flags.onBehalfOf.summary

Comma-separated list of usernames or aliases to assign the password to.
Comma-separated list of usernames or aliases to assign the password to; must have been created locally with the "org create user" command.

# flags.length.summary

Expand Down

0 comments on commit b20d852

Please sign in to comment.