MsgCore icon

MsgCore

Universal messaging gateway - send messages across multiple platforms

Overview

This node allows you to add a member to a project within the MsgCore platform. It is useful for managing project team members by assigning them specific roles such as owner, admin, member, or viewer. Typical use cases include automating user management workflows, integrating with identity systems, or programmatically controlling access and permissions in projects.

For example, you can use this node to automatically add a new user to a project with a predefined role after they sign up or are approved, streamlining onboarding processes.

Properties

Name Meaning
Email of user to add The email address of the user to be added as a member to the project.
Role to assign to member The role assigned to the new member. Options: owner, admin, member, viewer.
Project Identifier of the project where the member will be added. Defaults to "default".

Output

The output JSON contains the response from the API call that adds the member to the project. This typically includes details about the newly added member such as their user ID, email, assigned role, and possibly metadata related to the membership.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential configured in n8n to authenticate requests to the MsgCore API.
  • The node sends HTTP POST requests to the MsgCore API endpoint /api/v1/projects/{project}/members to add members.
  • The project parameter must correspond to an existing project identifier in the MsgCore system.

Troubleshooting

  • Common issues:

    • Invalid or missing API credentials will cause authentication failures.
    • Providing an email that does not correspond to a registered user may result in errors.
    • Insufficient permissions for the API key to manage members can cause authorization errors.
    • Using an invalid project identifier will lead to resource not found errors.
  • Error messages:

    • 401 Unauthorized: Check that your API key credential is valid and has the necessary permissions.
    • 404 Not Found: Verify the project identifier exists and is correctly specified.
    • 400 Bad Request: Ensure the email and role fields are correctly formatted and required fields are provided.

Links and References

Discussion