h2oGPTe icon

h2oGPTe

h2oGPTe is an AI-powered search assistant for your internal teams to answer questions gleaned from large volumes of documents, websites and workplace content.

Actions198

Overview

This node operation allows you to share a specific collection with another user by granting them access permissions. It is useful in scenarios where you want to collaborate or provide controlled access to a collection of documents or data within your system. For example, a team lead can share a project-related document collection with a team member, specifying the level of permissions they have.

Properties

Name Meaning
Collection ID The unique identifier of the collection to be shared.
Username The username of the user who will receive access to the collection.
Permissions (Optional) Defines the individual permission levels for the sharing rule (e.g., read, write).

Output

The output JSON contains the response from the API after attempting to share the collection with the specified user. This typically includes confirmation of success or details about the updated sharing status. The node does not output binary data.

Dependencies

  • Requires an API key credential configured in n8n to authenticate requests.
  • The node sends HTTP PUT requests to the endpoint /collections/{collection_id}/permissions/{username} with JSON body containing optional permissions.
  • The base URL and authentication headers are set via credentials.

Troubleshooting

  • Common issues:

    • Invalid or missing Collection ID or Username parameters will cause the request to fail.
    • Insufficient permissions of the authenticated user to share collections may result in authorization errors.
    • Incorrect permission strings may cause the API to reject the request.
  • Error messages:

    • 401 Unauthorized: Check that the API key credential is valid and has necessary permissions.
    • 404 Not Found: Verify that the Collection ID and Username exist in the system.
    • 400 Bad Request: Ensure that the permissions string, if provided, is correctly formatted.

Links and References

  • Refer to the API documentation for collection sharing endpoints for detailed permission options and usage.
  • Consult your platform's user management guide for valid usernames and permission levels.

Discussion