Lark Email icon

Lark Email

Lark Email Management

Overview

This node manages email permissions within Lark's mail groups. Specifically, the "Delete A Member Who Can Send Emails To Mailing List Addresses" operation removes a member from a permission group that allows sending emails to a mailing list address. This is useful for administrators who want to control or restrict who can send emails on behalf of a mail group, ensuring only authorized members have this capability.

Practical examples:

  • Removing an ex-employee or contractor from the list of permitted senders.
  • Revoking sending rights from a user who no longer needs to communicate via the mailing list.
  • Managing permissions dynamically as team roles change.

Properties

Name Meaning
Authentication Method used to authenticate API requests. Options: Tenant Token, OAuth2
Mailgroup Id The unique identifier or email address of the mail group from which a member will be removed
Permission Member Id The unique identifier of the member to be deleted from the permission group
Options > Use Custom Body Whether to use a custom request body instead of the default one (boolean)

Output

The node outputs JSON data representing the result of the delete operation. Typically, this includes confirmation of successful deletion or error details if the operation failed. There is no indication that binary data is output by this node.

Dependencies

  • Requires access to Lark Suite's Open APIs with appropriate authentication.
  • Supports two authentication methods: a tenant token credential or OAuth2.
  • The base URL for API requests is https://open.larksuite.com/open-apis.
  • Proper configuration of credentials in n8n is necessary for successful API calls.

Troubleshooting

  • Common issues:

    • Invalid or expired authentication tokens leading to authorization errors.
    • Incorrect Mailgroup Id or Permission Member Id causing "not found" errors.
    • Insufficient permissions for the authenticated user to modify mail group members.
  • Error messages and resolutions:

    • 401 Unauthorized: Check that the API key or OAuth2 token is valid and has not expired.
    • 404 Not Found: Verify that the Mailgroup Id and Permission Member Id are correct and exist.
    • 403 Forbidden: Ensure the authenticated user has the required permissions to delete members.
    • 400 Bad Request: If using a custom body, ensure it matches the expected API schema.

Links and References

Discussion