org-create-user Task

Description

Create a user for a scratch org.

It executes the force:user:create command.

Parameters

In addition to the attributes used by every ant-sf 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
targetorg -u A username or alias for the target org. No

Parameters specified as nested elements

param

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.

Examples

<org-create-user />
<org-create-user alias="testuser1" definitionfile="config/project-user-def.json" />
<org-create-user>
    <param name="username" value="testuser1@my.org" />
    <param name="email" value="me@my.org" />
    <param name="permsets" value="DreamHouse" />
</org-create-user>
<org-create-user definitionfile="config/project-user-def.json">
    <param name="email" value="me@my.org" />
    <param name="generatepassword" value="true" />
</org-create-user>

Version: 0.0.0-master