LearningSuite icon

LearningSuite

Interact with LearningSuite API (powered by agentur-systeme.de)

Overview

This node interacts with the LearningSuite API to manage groups within the system. Specifically, the "Find or Create Group" operation allows users to search for a group by name and, if it does not exist, create a new group with that name. This is useful in scenarios where workflows need to ensure a group exists before proceeding, such as assigning users to groups dynamically or managing access control.

Practical examples include:

  • Automatically creating a user group when onboarding new team members if the group does not already exist.
  • Searching for an existing group to add or remove users based on workflow logic.
  • Synchronizing external systems with LearningSuite groups by ensuring groups are present or created as needed.

Properties

Name Meaning
Group Name The name of the group to find or create.
Additional Options Optional settings; currently supports: Include Users — whether to include users in the group results (true/false).

Output

The node outputs JSON data representing the group found or created. The structure typically includes group details such as its identifier, name, and optionally, if requested, the list of users belonging to the group.

If the "Include Users" option is enabled, the output will contain user information nested within the group data.

No binary data output is indicated.

Dependencies

  • Requires an API key credential for authenticating with the LearningSuite API.
  • The node depends on the LearningSuite API being accessible at the configured base URL.
  • Proper configuration of the API credentials in n8n is necessary for successful operation.

Troubleshooting

  • Common Issues:

    • Group Not Found and Creation Fails: If the API credentials lack permissions to create groups, the operation will fail when attempting to create a non-existent group.
    • Invalid Group Name: Providing an empty or invalid group name will cause errors.
    • API Connectivity Problems: Network issues or incorrect base URL configuration can prevent the node from communicating with the LearningSuite API.
  • Error Messages:

    • "No handler for resource "group" and operation "findOrCreate": Indicates a misconfiguration or unsupported operation; verify the resource and operation names.
    • API error messages related to authentication or authorization failures suggest checking the API key credential.
    • Validation errors about missing required parameters indicate that the "Group Name" property must be provided.

To resolve these issues, ensure:

  • The API key credential is valid and has appropriate permissions.
  • The "Group Name" field is correctly filled.
  • The LearningSuite API endpoint is reachable from the n8n instance.

Links and References

Discussion