Assigns a password to a user. For a user to have the ability to assign their own password, the org needs the following org preference: SelfSetPasswordInApi
The AuthInfo object for user to assign the password to.
A SecureBuffer containing the new password.
Methods to assign one or more permission set names to a user.
The Salesforce id of the user to assign the permission set to.
An array of permission set names.
Method for creating a new User.
By default scratch orgs only allow creating 2 additional users. Work with Salesforce Customer Service to increase user limits.
The Org Preferences required to increase the number of users are: Standard User Licenses Salesforce CRM Content User
The required fields for creating a user.
An AuthInfo object for the new user.
Method to retrieve the UserFields for a user.
The username of the user
Generate default password for a user.
An encrypted buffer containing a utf8 encoded password.
A class for creating a User, generating a password for a user, and assigning a user to one or more permission sets. See methods for examples.