Actions22
- Attendance Group Actions
- Attendance Shift Actions
- Attendance Schedule Actions
- Attendance Statistic Actions
- Attendance Record Actions
- Attendance Correction Actions
- User Setting Actions
- File Actions
- Task Actions
Overview
The "Delete Attendance Group" operation in the Lark Attendance node allows users to remove a specific attendance group from their Lark Attendance system. This is useful for managing and cleaning up attendance groups that are no longer needed, such as outdated teams or projects. For example, an HR manager might delete an attendance group after a project ends to keep the attendance records organized.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authenticating API requests. Options: Tenant Token (using a tenant-level API token) or OAuth2 (using OAuth2 authentication flow). |
| Group Id | The unique numeric identifier of the attendance group to delete. This ID can be obtained by creating/modifying attendance groups, searching attendance groups by name, or querying attendance results. It is required to specify which group to delete. |
| Options | Additional optional settings: - Use Custom Body: Boolean flag indicating whether to send a custom request body instead of the default. |
Output
The node outputs JSON data representing the response from the Lark Attendance API after attempting to delete the specified attendance group. Typically, this will include confirmation of deletion or error details if the operation failed.
No binary data output is involved in this operation.
Dependencies
- Requires access to the Lark Suite Open APIs.
- Requires either a valid tenant token credential or OAuth2 credentials configured in n8n for authentication.
- The base URL for API requests is
https://open.larksuite.com/open-apis. - Proper permissions on the Lark Attendance service to delete attendance groups.
Troubleshooting
- Invalid Group Id: If the provided Group Id does not exist or is incorrect, the API will return an error. Verify the Group Id by listing or searching attendance groups before deletion.
- Authentication Errors: Using invalid or expired credentials will cause authentication failures. Ensure the tenant token or OAuth2 credentials are valid and have sufficient permissions.
- Permission Denied: The authenticated user may lack rights to delete attendance groups. Confirm the account has appropriate roles/permissions in Lark Attendance.
- Use Custom Body Option: If enabled incorrectly, the request body may not match API expectations causing errors. Usually, leave this option disabled unless you need to customize the request payload explicitly.
