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 checks if a specific permission is granted for a given user on a particular collection. It is useful in scenarios where you need to verify access rights before performing actions on collections, such as reading, editing, or sharing content. For example, before allowing a user to modify documents within a collection, this node can confirm whether the user has the required permission.

Properties

Name Meaning
Collection ID The unique identifier of the collection to check permissions against.
Permission The specific permission to check if it is granted for the user on the collection.

Output

The output JSON will contain the response from the API indicating whether the specified permission is granted for the user on the given collection. This typically includes a boolean or status field confirming the permission state.

If the node supports binary data output (not indicated here), it would represent related binary content, but this operation primarily deals with permission checking and returns JSON data.

Dependencies

  • Requires an API key credential for authentication to the external service.
  • The node sends a POST request to the endpoint /collections/{collection_id}/permissions/is_granted with the permission details in the request body.
  • Proper configuration of the base URL and authentication credentials in n8n is necessary.

Troubleshooting

  • Common Issues:

    • Invalid or missing Collection ID or Permission property may cause the request to fail.
    • Insufficient API permissions or invalid API key can result in authorization errors.
    • Network connectivity issues may prevent reaching the API endpoint.
  • Error Messages:

    • 401 Unauthorized: Check that the API key credential is correctly configured and has sufficient permissions.
    • 404 Not Found: Verify that the Collection ID exists and is correct.
    • 400 Bad Request: Ensure that the Permission value is valid and properly formatted.

Links and References

  • Refer to the API documentation of the external service for detailed information about permission management and the /collections/{collection_id}/permissions/is_granted endpoint.
  • n8n documentation on setting up API credentials and HTTP request nodes for further customization.

Discussion