Skip to content

Commit 3a5ac57

Browse files
committed
chore(release): 2.3.36 [skip ci]
1 parent 0499590 commit 3a5ac57

File tree

3 files changed

+30
-14
lines changed

3 files changed

+30
-14
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [2.3.36](https://github.com/salesforcecli/plugin-user/compare/2.3.35...2.3.36) (2023-10-06)
2+
3+
### Bug Fixes
4+
5+
- update "org generate password" help to say --on-behalf-of works for only locally-created users ([b20d852](https://github.com/salesforcecli/plugin-user/commit/b20d852b6c555eae7ab9a6b324e872879b503109))
6+
17
## [2.3.35](https://github.com/salesforcecli/plugin-user/compare/2.3.34...2.3.35) (2023-10-01)
28

39
### Bug Fixes

README.md

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ FLAGS
109109
stronger the password.
110110
-l, --length=<value> [default: 13] Number of characters in the generated password; valid values are between
111111
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.
113114
-u, --target-org=<value> (required) Scratch org alias or login user.
114115
--api-version=<value> Override the api version used for api requests made by this command
115116
@@ -120,7 +121,10 @@ DESCRIPTION
120121
Generate a random password for scratch org users.
121122
122123
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.
124128
125129
To change the password strength, set the --complexity flag to a value between 0 and 5. Each value specifies the types
126130
of characters used in the generated password:
@@ -148,13 +152,14 @@ EXAMPLES
148152
149153
$ sfdx force:user:password:generate --complexity 3
150154
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:
152157
153158
$ sfdx force:user:password:generate --on-behalf-of user1@my.org --on-behalf-of user2@my.org --on-behalf-of \
154159
user3@my.org
155160
```
156161

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)_
158163

159164
## `sfdx org:assign:permset`
160165

@@ -197,7 +202,7 @@ EXAMPLES
197202
$ sfdx org:assign:permset --name DreamHouse --on-behalf-of user1@my.org --on-behalf-of user2 --on-behalf-of user
198203
```
199204

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)_
201206

202207
## `sfdx org:assign:permsetlicense`
203208

@@ -241,7 +246,7 @@ EXAMPLES
241246
--on-behalf-of user3
242247
```
243248

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)_
245250

246251
## `sfdx org:create:user`
247252

@@ -339,7 +344,7 @@ FLAG DESCRIPTIONS
339344
might be different than what you specify in the definition file.
340345
```
341346

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)_
343348

344349
## `sfdx org:display:user`
345350

@@ -376,7 +381,7 @@ EXAMPLES
376381
$ sfdx org:display:user --target-org me@my.org --json
377382
```
378383

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)_
380385

381386
## `sfdx org:generate:password`
382387

@@ -387,7 +392,8 @@ USAGE
387392
$ sfdx org:generate:password -o <value> [--json] [-b <value>] [-l <value>] [-c <value>] [--api-version <value>]
388393
389394
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.
391397
-c, --complexity=<value> [default: 5] Level of password complexity or strength; the higher the value, the
392398
stronger the password.
393399
-l, --length=<value> [default: 13] Number of characters in the generated password; valid values are between
@@ -402,7 +408,10 @@ DESCRIPTION
402408
Generate a random password for scratch org users.
403409
404410
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.
406415
407416
To change the password strength, set the --complexity flag to a value between 0 and 5. Each value specifies the types
408417
of characters used in the generated password:
@@ -430,12 +439,13 @@ EXAMPLES
430439
431440
$ sfdx org:generate:password --complexity 3
432441
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:
434444
435445
$ sfdx org:generate:password --on-behalf-of user1@my.org --on-behalf-of user2@my.org --on-behalf-of user3@my.org
436446
```
437447

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)_
439449

440450
## `sfdx org:list:users`
441451

@@ -471,6 +481,6 @@ EXAMPLES
471481
$ sfdx org:list:users --target-org me@my.org
472482
```
473483

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)_
475485

476486
<!-- commandsstop -->

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/plugin-user",
33
"description": "Commands to interact with Users and Permission Sets",
4-
"version": "2.3.35",
4+
"version": "2.3.36",
55
"author": "Salesforce",
66
"main": "lib/index.js",
77
"bugs": "https://github.com/forcedotcom/cli/issues",

0 commit comments

Comments
 (0)