Prerequisites
- Drupal 8.x environment
- Drupal system configured
Description
This task will create or update a user in Drupal.
Variables
Name | Description | Type | Example | Screenshot |
---|---|---|---|---|
Drupal Variables |
The system variables which contain the Base URL, admin username, admin password and people view |
List |
- https://test.enyoi.org - admin - adminPassword - all_users
|
All objects within the System are mandatory parameters. The people view needs to be configured in Drupal, this needs to be a view that outputs all users (active and inactive) to a Rest endpoint. |
Username |
The username which will be used for the account |
String |
j.doe |
Mandatory parameter. Determination whether user is created or updated is based on the users’ username. |
Email Address |
Email address of the user |
String |
Mandatory parameter. Must be a unique email address. Users cannot have the same email address. |
|
Password |
Password of the user |
String |
Password123! |
Optional when updating user, mandatory when creating a user. |
Enabled |
Status of the user |
Switch |
‘On’ or ‘Off’ |
When switched to ‘On’ the user will be enabled or created as an enabled user. When switched to ‘Off’ the user will be disabled, or created as a disabled user. |
Role Name |
The user role |
String |
webmaster |
Optional when updating user, mandatory when creating a new user. Make sure to specify an existing role. Case sensitive. |
Generate Password |
Generates a random password |
Switch |
‘On’ or ‘Off’ |
When switched to ‘On’ it generates a random extremely complex password for a user, when logging in with username and password is unwanted. For instance when using openID Connect or SAML. |
Use PUT method |
Use PUT method in the web request |
Switch |
'On’ or ‘Off’ |
Perform a Put request instead of Patch with updating a user. |
Release notes
Date |
Version |
Description |
26-07-2019 |
1.1.0 |
Added parameter Put, to make a PUT call instead of the hardcoded PATCH method |
1.0.0 | The initial creation of Task |