Create a user for a scratch org.
It executes the force:user:create command.
In addition to the attributes used by every ant-sfdx task, this task uses the following attributes:
| Attribute | Command line equivalent | Description | Required |
|---|---|---|---|
| alias | -a | An alias for the created username. | No |
| definitionfile | -f | A user definition file. | No |
| targetusername | -u | A username or alias for the target org. | No |
| targetdevhubusername | -v | A username or alias for the target Dev Hub org. | No |
Specifies parameters to be used for the user creation, sent as key=value pairs to the Salesforce DX CLI command. See property for usage guidelines.
<force-user-create />
<force-user-create alias="testuser1" definitionfile="config/project-user-def.json" />
<force-user-create>
<param name="username" value="testuser1@my.org" />
<param name="email" value="me@my.org" />
<param name="permsets" value="DreamHouse" />
</force-user-create>
<force-user-create definitionfile="config/project-user-def.json">
<param name="email" value="me@my.org" />
<param name="generatepassword" value="true" />
</force-user-create>
Version: 0.0.0-master