OpenProject icon

OpenProject

Interact with OpenProject via API

Actions199

Overview

This node allows you to lock a user in the "Users" resource of the OpenProject system via its API. Locking a user typically disables their access without deleting their account, which is useful for temporarily restricting user activity or managing user permissions securely.

Common scenarios include:

  • Disabling access for users who have left an organization.
  • Temporarily suspending accounts during security investigations.
  • Managing user lifecycle without losing historical data.

Example: Locking a user with ID 123 to prevent them from logging into the system.

Properties

Name Meaning
Id The unique identifier of the user to lock (number).

Output

The node outputs JSON data representing the result of the lock operation on the specified user. This typically includes confirmation of the user's locked status or details about the updated user record.

No binary data output is involved.

Dependencies

  • Requires an API key credential to authenticate with the OpenProject API.
  • Needs the base URL of the OpenProject instance configured in the credentials.
  • Depends on the OpenProject REST API being accessible and the authenticated user having permission to lock users.

Troubleshooting

  • Invalid User ID: If the provided user ID does not exist, the API will likely return an error indicating the user was not found. Verify the user ID before running the node.
  • Authentication Errors: Ensure that the API key and base URL are correctly set up in the node credentials.
  • Permission Denied: The authenticated user must have sufficient rights to lock other users; otherwise, the API will reject the request.
  • Network Issues: Connectivity problems with the OpenProject server can cause timeouts or failures.

Links and References

Discussion