@@ -109,7 +109,8 @@ FLAGS
109
109
stronger the password.
110
110
-l, --length=<value> [default: 13] Number of characters in the generated password; valid values are between
111
111
8 and 100.
112
- -o, --on-behalf-of=<value>... Comma-separated list of usernames or aliases to assign the password to.
112
+ -o, --on-behalf-of=<value>... Comma-separated list of usernames or aliases to assign the password to; must have been
113
+ created locally with the "org create user" command.
113
114
-u, --target-org=<value> (required) Scratch org alias or login user.
114
115
--api-version=<value> Override the api version used for api requests made by this command
115
116
@@ -120,7 +121,10 @@ DESCRIPTION
120
121
Generate a random password for scratch org users.
121
122
122
123
By default, new scratch orgs contain one admin user with no password. Use this command to generate or change a
123
- password for any scratch org user. After it's set, you can’t unset a password, you can only change it.
124
+ password for this admin user. After it's set, you can’t unset a password, you can only change it.
125
+
126
+ You can also use the --on-behalf-of flag to generate a password for a scratch org user that you've created locally
127
+ with the "org create user" command. This command doesn't work for users you created in the scratch org using Setup.
124
128
125
129
To change the password strength, set the --complexity flag to a value between 0 and 5. Each value specifies the types
126
130
of characters used in the generated password:
@@ -148,13 +152,14 @@ EXAMPLES
148
152
149
153
$ sfdx force:user:password:generate --complexity 3
150
154
151
- Generate a password for the specified users in the default scratch org:
155
+ Generate a password for the specified users in the default scratch org; these users must have been created locally
156
+ with the "org create user" command:
152
157
153
158
$ sfdx force:user:password:generate --on-behalf-of user1@my.org --on-behalf-of user2@my.org --on-behalf-of \
154
159
user3@my.org
155
160
```
156
161
157
- _ See code: [ src/commands/force/user/password/generate.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.35 /src/commands/force/user/password/generate.ts ) _
162
+ _ See code: [ src/commands/force/user/password/generate.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.36 /src/commands/force/user/password/generate.ts ) _
158
163
159
164
## ` sfdx org:assign:permset `
160
165
@@ -197,7 +202,7 @@ EXAMPLES
197
202
$ sfdx org:assign:permset --name DreamHouse --on-behalf-of user1@my.org --on-behalf-of user2 --on-behalf-of user
198
203
```
199
204
200
- _ See code: [ src/commands/org/assign/permset.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.35 /src/commands/org/assign/permset.ts ) _
205
+ _ See code: [ src/commands/org/assign/permset.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.36 /src/commands/org/assign/permset.ts ) _
201
206
202
207
## ` sfdx org:assign:permsetlicense `
203
208
@@ -241,7 +246,7 @@ EXAMPLES
241
246
--on-behalf-of user3
242
247
```
243
248
244
- _ See code: [ src/commands/org/assign/permsetlicense.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.35 /src/commands/org/assign/permsetlicense.ts ) _
249
+ _ See code: [ src/commands/org/assign/permsetlicense.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.36 /src/commands/org/assign/permsetlicense.ts ) _
245
250
246
251
## ` sfdx org:create:user `
247
252
@@ -339,7 +344,7 @@ FLAG DESCRIPTIONS
339
344
might be different than what you specify in the definition file.
340
345
```
341
346
342
- _ See code: [ src/commands/org/create/user.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.35 /src/commands/org/create/user.ts ) _
347
+ _ See code: [ src/commands/org/create/user.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.36 /src/commands/org/create/user.ts ) _
343
348
344
349
## ` sfdx org:display:user `
345
350
@@ -376,7 +381,7 @@ EXAMPLES
376
381
$ sfdx org:display:user --target-org me@my.org --json
377
382
```
378
383
379
- _ See code: [ src/commands/org/display/user.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.35 /src/commands/org/display/user.ts ) _
384
+ _ See code: [ src/commands/org/display/user.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.36 /src/commands/org/display/user.ts ) _
380
385
381
386
## ` sfdx org:generate:password `
382
387
@@ -387,7 +392,8 @@ USAGE
387
392
$ sfdx org:generate:password -o <value> [--json] [-b <value>] [-l <value>] [-c <value>] [--api-version <value>]
388
393
389
394
FLAGS
390
- -b, --on-behalf-of=<value>... Comma-separated list of usernames or aliases to assign the password to.
395
+ -b, --on-behalf-of=<value>... Comma-separated list of usernames or aliases to assign the password to; must have been
396
+ created locally with the "org create user" command.
391
397
-c, --complexity=<value> [default: 5] Level of password complexity or strength; the higher the value, the
392
398
stronger the password.
393
399
-l, --length=<value> [default: 13] Number of characters in the generated password; valid values are between
@@ -402,7 +408,10 @@ DESCRIPTION
402
408
Generate a random password for scratch org users.
403
409
404
410
By default, new scratch orgs contain one admin user with no password. Use this command to generate or change a
405
- password for any scratch org user. After it's set, you can’t unset a password, you can only change it.
411
+ password for this admin user. After it's set, you can’t unset a password, you can only change it.
412
+
413
+ You can also use the --on-behalf-of flag to generate a password for a scratch org user that you've created locally
414
+ with the "org create user" command. This command doesn't work for users you created in the scratch org using Setup.
406
415
407
416
To change the password strength, set the --complexity flag to a value between 0 and 5. Each value specifies the types
408
417
of characters used in the generated password:
@@ -430,12 +439,13 @@ EXAMPLES
430
439
431
440
$ sfdx org:generate:password --complexity 3
432
441
433
- Generate a password for the specified users in the default scratch org:
442
+ Generate a password for the specified users in the default scratch org; these users must have been created locally
443
+ with the "org create user" command:
434
444
435
445
$ sfdx org:generate:password --on-behalf-of user1@my.org --on-behalf-of user2@my.org --on-behalf-of user3@my.org
436
446
```
437
447
438
- _ See code: [ src/commands/org/generate/password.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.35 /src/commands/org/generate/password.ts ) _
448
+ _ See code: [ src/commands/org/generate/password.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.36 /src/commands/org/generate/password.ts ) _
439
449
440
450
## ` sfdx org:list:users `
441
451
@@ -471,6 +481,6 @@ EXAMPLES
471
481
$ sfdx org:list:users --target-org me@my.org
472
482
```
473
483
474
- _ See code: [ src/commands/org/list/users.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.35 /src/commands/org/list/users.ts ) _
484
+ _ See code: [ src/commands/org/list/users.ts] ( https://github.com/salesforcecli/plugin-user/blob/2.3.36 /src/commands/org/list/users.ts ) _
475
485
476
486
<!-- commandsstop -->
0 commit comments