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 "Removes Roles From a Given Group" under the "Permission" resource allows users to remove one or more roles from a specified user group. This is useful in scenarios where you want to revoke certain permissions or access rights that are associated with specific roles from a group of users. For example, if a project team no longer requires admin privileges, this operation can be used to remove the "admin" role from that group's assigned roles.

Properties

Name Meaning
Group ID The unique identifier of the group from which roles will be removed.
Role Names A string listing the names of the roles to be removed from the group (likely comma-separated).

Output

The output of this operation typically includes the full HTTP response returned by the API after attempting to remove the roles from the group. The json output field will contain the response data indicating success or failure of the removal operation. There is no indication of binary data output for this operation.

Dependencies

  • Requires an API key credential for authentication to the external service.
  • The node sends an HTTP DELETE request to the endpoint /groups/{group_id}/roles/{role_names} on the configured base URL.
  • The base URL and credentials must be properly configured in n8n for successful API communication.

Troubleshooting

  • Common Issues:
    • Invalid or missing Group ID or Role Names parameters will cause the API call to fail.
    • Insufficient permissions of the API key may result in authorization errors.
    • Specifying role names that do not exist or are not assigned to the group may lead to partial or no changes.
  • Error Messages:
    • 404 Not Found: The specified group or roles do not exist.
    • 401 Unauthorized: Authentication failed due to invalid API key.
    • 400 Bad Request: Malformed input, such as empty role names or group ID.
  • Resolution:
    • Verify that the Group ID and Role Names are correct and exist in the system.
    • Ensure the API key has sufficient permissions to modify group roles.
    • Check the formatting of the Role Names string (e.g., comma-separated if required).

Links and References

  • Refer to your API provider's documentation for managing groups and roles, specifically the endpoint for removing roles from groups.
  • General REST API best practices for DELETE requests and error handling.

Discussion