MOCO

Consume MOCO API

Actions20

Overview

This node integrates with the MOCO API to update user information. It allows updating various user details such as first name, last name, email, password, team association, and additional fields like activation status and external employee status. This node is useful in scenarios where user data needs to be programmatically maintained or synchronized, such as HR systems, user management workflows, or automated onboarding/offboarding processes.

Use Case Examples

  1. Updating a user's email and team assignment when they change departments.
  2. Activating or deactivating a user account based on employment status changes.
  3. Changing a user's password securely through an automated workflow.

Properties

Name Meaning
User ID The unique identifier of the user to update. This is required to specify which user record to modify.
First Name The user's first name to update.
Last Name The user's last name to update.
Email The user's email address to update.
Password The user's password to update.
Team Name or ID The team (unit) the user belongs to, selectable from a list or specified by ID.
Additional Fields Optional additional user attributes such as activation status and whether the user is external.

Output

JSON

  • id - The unique identifier of the updated user.
  • firstname - The updated first name of the user.
  • lastname - The updated last name of the user.
  • email - The updated email address of the user.
  • unit_id - The ID of the team (unit) the user belongs to.
  • active - Indicates if the user is active or deactivated.
  • external - Indicates if the user is an external employee or contractor.

Dependencies

  • MOCO API
  • API authentication token or API key credential

Troubleshooting

  • Ensure the User ID is correct and exists in the MOCO system to avoid 'user not found' errors.
  • Verify that the API credentials are valid and have sufficient permissions to update user data.
  • Check that required fields like User ID are provided; missing required fields will cause errors.
  • If updating the password, ensure it meets MOCO's password policy requirements to avoid rejection.

Links

Discussion