MOCO icon

MOCO

Consume MOCO API

Overview

This node interacts with the MOCO API to perform operations related to users. Specifically, the 'User' resource with the 'Get' operation retrieves detailed information about a user by their unique User ID. This is useful in scenarios where you need to fetch user details for further processing, reporting, or integration with other systems.

Use Case Examples

  1. Retrieve user details by providing a User ID to get their profile information such as name, email, and status.
  2. Use the node to fetch user data for authentication or user management workflows.

Properties

Name Meaning
User ID The unique identifier of the user to retrieve. This is a required string input.

Output

JSON

  • id - The unique identifier of the user.
  • firstname - The first name of the user.
  • lastname - The last name of the user.
  • email - The email address of the user.
  • active - Indicates if the user is active.
  • external - Indicates if the user is external.
  • unit_id - The ID of the unit (team or department) the user belongs to.
  • created_at - Timestamp when the user was created.
  • updated_at - Timestamp when the user was last updated.

Dependencies

  • MOCO API access with an API key credential

Troubleshooting

  • Ensure the User ID provided is valid and exists in the MOCO system to avoid 'not found' errors.
  • Check API credentials and permissions if authentication errors occur.
  • Handle network or API rate limit errors by implementing retries or backoff strategies.

Links

Discussion