sf org create user in non scratch org environment #2842
Replies: 2 comments 4 replies
-
there wasn't a lot of votes/activity for #2606 so we haven't prioritized it. |
Beta Was this translation helpful? Give feedback.
-
@MichaelPStimpson - Hello! I'm Vivek M. Chawla, Product Manager for the Salesforce CLI. Could you elaborate on what you'd like to accomplish by creating sandbox users with the CLI? Are there particular pain points you experience while creating sandbox users in other ways, for example, User record insertion/creation via API, Apex, or Flows? Regarding bulkification, I agree with @mshanemc that's something best managed via scripts. That way, your automation logic is in the driver's seat when it comes to failures, retries, etc. |
Beta Was this translation helpful? Give feedback.
-
Hello, I love the user definition file for scratch org users. Is there any reason we can't bulkify this command and add support for sandbox environments?
I see we're explicitly checking for it here on line 306.
I also see the following bit here:
After the new user has been created, Salesforce CLI automatically authenticates it to the scratch org so the new user can immediately start using the scratch org. The CLI uses the same authentication method that was used on the associated Dev Hub org. Due to Hyperforce limitations, the scratch org user creation fails if the Dev Hub authentication used the JWT flow and the scratch org is on Hyperforce. For this reason, if you plan to create scratch org users, authenticate to the Dev Hub org with either the "org login web" or "org login sfdx-url" command, and not "org login jwt".
I've also found past posts discussing this here
I'm curious why user definition file isn't something exposed to non scratch org user creation.
Is this an effort already in progress to deliver something like this?
(and if not) Are there any suggestions for implementing this feature?
Beta Was this translation helpful? Give feedback.
All reactions