Gitea icon

Gitea

Interact with Gitea via API

Actions393

Overview

This node allows an administrator to rename an existing user in the system by changing their username. It is useful in scenarios where a user's username needs to be updated due to changes in naming conventions, corrections of typos, or rebranding purposes. For example, if a user initially registered with the username "john_doe" and wants to change it to "johnathan_doe", this node facilitates that update securely.

Properties

Name Meaning
Username The current existing username of the user you want to rename.
New Username The new username to assign to the user. This must be unique and not already in use by others.

Output

The node outputs JSON data representing the result of the rename operation. Typically, this will include confirmation details such as the updated user information or a success status. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authenticating with the target service.
  • The node interacts with the service's REST API endpoint for user management.
  • The base URL for the API is configured via credentials.
  • Proper permissions are required for the API key to perform administrative user modifications.

Troubleshooting

  • Common Issues:
    • Attempting to rename a user to a username that already exists will likely cause an error.
    • Providing a non-existent current username will result in a failure to find the user.
    • Insufficient permissions on the API key can cause authorization errors.
  • Error Messages:
    • "User not found": Verify the current username is correct.
    • "Username already taken": Choose a different new username that is not in use.
    • "Unauthorized": Check that the API key has admin privileges.
  • Ensure the API base URL and credentials are correctly configured in n8n.

Links and References

  • Refer to the official API documentation of the service for user management endpoints.
  • Consult n8n documentation on setting up API credentials and HTTP request nodes for further customization.

Discussion