MOCO icon

MOCO

Consume MOCO API

Overview

This node integrates with the MOCO API to manage users within the MOCO system. Specifically, the 'User Delete' operation allows users to delete a user account by specifying the User ID. This is useful in scenarios where user accounts need to be removed from the system, such as when an employee leaves a company or an account is no longer needed.

Use Case Examples

  1. Deleting a user account by providing the User ID to remove access and data associated with that user.
  2. Automating user management workflows by programmatically deleting users based on certain triggers or conditions.

Properties

Name Meaning
User ID The unique identifier of the user to be deleted. This is a required field for the delete operation on the User resource.

Output

JSON

  • id - The unique identifier of the deleted user.
  • firstname - The first name of the deleted user.
  • lastname - The last name of the deleted user.
  • email - The email address of the deleted user.
  • unit_id - The unit or department ID the user belonged to.
  • active - Indicates if the user was active before deletion.
  • external - Indicates if the user was an external user.

Dependencies

  • MOCO API key credential for authentication

Troubleshooting

  • Ensure the User ID provided is correct and exists in the MOCO system to avoid 'not found' errors.
  • Check that the API key credential used has sufficient permissions to delete users.
  • Handle errors gracefully by enabling 'Continue On Fail' to avoid workflow interruptions if a deletion fails.

Links

  • MOCO API Users Endpoint - Official MOCO API documentation for user management endpoints including delete operation.

Discussion