Skip to content

Instantly share code, notes, and snippets.

@jstvz
Created August 7, 2020 18:10
Show Gist options
  • Save jstvz/a54289c01e549f839a002627d1fbaa54 to your computer and use it in GitHub Desktop.
Save jstvz/a54289c01e549f839a002627d1fbaa54 to your computer and use it in GitHub Desktop.
Using `force:user:create` in a flow
tasks:
create_special_user:
class_path: cumulusci.tasks.sfdx.SFDXOrgTask
options:
command: "force:user:create --definitionfile datasets/users/user-special.json"
flows:
config_dev:
steps:
3:
task: create_special_user
{
"LastName": "John",
"FirstName": "Smith",
"Email": "sample@sfdx.org",
"Alias": "Jsmith",
"TimeZoneSidKey": "America/Denver",
"LocaleSidKey": "en_US",
"EmailEncodingKey": "UTF-8",
"LanguageLocaleKey": "en_US",
"profileName": "Standard Platform User",
"permsets": ["Special", "Dreamhouse"],
"generatePassword": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment