Actions20
Overview
This node integrates with the MOCO API to manage users within the MOCO system. Specifically, the 'User Create' operation allows users to create a new user by providing essential details such as first name, last name, email, password, and team (unit) association. Additional optional fields like activation status and external user flag can also be set. This node is useful in scenarios where automated user management is needed, such as onboarding new employees or contractors in a team environment.
Use Case Examples
- Automatically create a new user in MOCO when a new employee joins the company.
- Create external contractor user accounts with specific team assignments and activation status.
Properties
| Name | Meaning |
|---|---|
| First Name | The first name of the user being created. |
| Last Name | The last name of the user being created. |
| The email address of the user being created, used for login and communication. | |
| Password | The password for the new user account. |
| Team Name or ID | The team (unit) to which the user belongs, selectable from a list or specified by ID. |
| Additional Fields | Optional fields to specify whether the user is active and whether the user is external (e.g., contractor). |
Output
JSON
id- The unique identifier of the created user.firstname- The first name of the created user.lastname- The last name of the created user.email- The email address of the created user.unit_id- The team (unit) ID associated with the created user.active- Indicates if the user is active.external- Indicates if the user is an external user.
Dependencies
- MOCO API
Troubleshooting
- Ensure that all required fields (firstname, lastname, email, password, unitId) are provided; missing required fields will cause errors.
- Verify that the API credentials for MOCO are correctly configured and have permissions to create users.
- If the 'Team Name or ID' is invalid or not accessible, the user creation will fail.
- Common error messages include authentication failures, validation errors for email format, or missing required fields. Check the error message details for guidance.
Links
- MOCO API User Documentation - Official MOCO API documentation for user management endpoints.