MOCO icon

MOCO

Consume MOCO API

Overview

This node interacts with the MOCO API to manage users. Specifically, the 'User - List' operation retrieves a list of users from the MOCO system. It supports filtering and pagination options, allowing users to fetch all users or limit the number of results, filter by specific user IDs, and retrieve users updated after a certain timestamp. Additional options include including archived (deactivated) users and sorting the results by a specified field. This operation is useful for scenarios where you need to synchronize user data, generate reports, or manage user lists within an automation workflow.

Use Case Examples

  1. Fetch all users from MOCO to synchronize with another system.
  2. Retrieve a limited number of active users updated after a specific date for reporting.
  3. List users including archived ones to audit user activity.

Properties

Name Meaning
Return All Whether to return all user results or only up to a given limit.
Limit Maximum number of user results to return when 'Return All' is false.
IDs Filter users by specific comma-separated user IDs to fetch multiple entities.
Updated After Fetch users created or updated after this timestamp.
Additional Fields Additional optional parameters such as including archived users and sorting the results.

Output

JSON

  • id - Unique identifier of the user.
  • firstname - First name of the user.
  • lastname - Last name of the user.
  • email - Email address of the user.
  • active - Indicates if the user is active or archived.
  • unit_id - Identifier of the unit or team the user belongs to.
  • created_at - Timestamp when the user was created.
  • updated_at - Timestamp when the user was last updated.

Dependencies

  • MOCO API key credential for authentication

Troubleshooting

  • Ensure the MOCO API credentials are correctly configured to avoid authentication errors.
  • If no users are returned, verify the filter parameters such as IDs and Updated After timestamp are correct and match existing users.
  • Check API rate limits or network connectivity if requests fail or time out.

Links

Discussion