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 assigns one or more roles to a specified user group within a system that manages permissions and access control. It is useful in scenarios where you want to grant a set of permissions collectively represented by roles to a group of users, enabling streamlined management of access rights. For example, an administrator can assign "editor" and "viewer" roles to the "marketing team" group, thereby granting all members of that group the associated permissions.

Properties

Name Meaning
Group ID The unique identifier of the group to which roles will be assigned.
Role Names A string listing the names of roles to assign to the group. Multiple role names can be included.

Output

The output JSON contains the full response from the API call that assigns roles to the group. This typically includes confirmation of the assignment and any relevant metadata returned by the server. The node does not output binary data.

Dependencies

  • Requires an API key credential for authentication with the external permission management service.
  • The base URL for API requests is configured dynamically based on credentials.
  • The node sends a PUT HTTP request to the endpoint /groups/{group_id}/roles/{role_names} to perform the assignment.

Troubleshooting

  • Invalid Group ID: If the provided group ID does not exist, the API may return an error indicating the group was not found. Verify the group ID is correct.
  • Invalid Role Names: If any role name is invalid or does not exist, the API may reject the request. Ensure all role names are valid and spelled correctly.
  • Authentication Errors: Missing or incorrect API key credentials will cause authentication failures. Confirm that the API key credential is properly configured.
  • Permission Denied: The authenticated user must have sufficient privileges to assign roles to groups. Lack of permissions will result in an authorization error.
  • Malformed Role Names: Role names should be formatted as expected by the API (e.g., comma-separated if multiple). Check the API documentation for the correct format.

Links and References

  • Refer to the external permission management API documentation for details on the roles and groups endpoints.
  • Consult your system administrator for valid group IDs and role names.
  • n8n documentation on configuring API key credentials and HTTP request nodes.

Discussion