MOCO icon

MOCO

Consume MOCO API

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 account by providing essential details such as first name, last name, email, password, and team association. Additional optional fields like activation status and external user designation can also be set. This node is useful for automating user management tasks, such as onboarding new employees or contractors in a team environment.

Use Case Examples

  1. Automatically create a new user in MOCO when a new employee joins the company.
  2. Batch create multiple users in MOCO from a CSV import workflow.

Properties

Name Meaning
First Name The first name of the user being created.
Last Name The last name of the user being created.
Email The email address of the user being created, used for login and communication.
Password The password for the user account being created.
Team Name or ID The team (unit) to which the user belongs, selectable from a list or specified by ID.
Additional Fields Optional additional user properties such as activation status and whether the user is external.

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 ID of the team (unit) the user belongs to.
  • active - Indicates if the user is active.
  • external - Indicates if the user is an external user.

Dependencies

  • MOCO API with authentication credentials

Troubleshooting

  • Ensure all required fields (firstname, lastname, email, password, unitId) are provided; missing fields will cause errors.
  • Verify that the 'Team Name or ID' corresponds to a valid existing team in MOCO; invalid team IDs will cause the API request to fail.
  • Check API credentials and permissions to ensure the node can create users in MOCO.
  • Common error messages include authentication failures, validation errors for missing or invalid fields, and permission denied errors. Resolving these typically involves verifying credentials, input data, and user permissions.

Links

Discussion