Actions28
- Action Actions
- Country Actions
- Event Actions
- Language Actions
- Product Actions
- Profile Actions
- Task Actions
- Timezone Actions
- User Management Actions
- kSuite Actions
Overview
The "Cancel Invitation" operation in the User Management resource allows users to cancel a previously sent invitation to join an account. This is useful when an invitation was sent by mistake, or if the invitee should no longer be granted access. The node interacts with the Infomaniak API to delete the specified invitation from the given account.
Common scenarios:
- Revoking access before the invited user accepts.
- Managing user invitations programmatically in bulk workflows.
- Automating cleanup of pending invitations that are no longer valid.
Practical example:
You have an automated onboarding process where invitations are sent to new team members. If a candidate declines or is removed from the hiring list, you can use this node operation to cancel their outstanding invitation automatically.
Properties
| Name | Meaning |
|---|---|
| Sub Resource | Selects the sub-category of user management operations. Options: Core, Accounts, Teams. |
| Account ID | The identifier of the account for which the invitation was sent. Required for cancellation. |
| Invitation ID | The unique identifier of the invitation to cancel. |
Output
The output JSON contains a success confirmation message indicating that the invitation was cancelled successfully. It has the structure:
{
"success": true,
"message": "Invitation <invitationId> cancelled successfully"
}
No binary data is output by this operation.
Dependencies
- Requires an API key credential for authenticating with the Infomaniak API.
- The node makes HTTP DELETE requests to the endpoint:
https://api.infomaniak.com/1/accounts/{accountId}/invitations/{invitationId} - Proper configuration of the API authentication token in n8n credentials is necessary.
Troubleshooting
- Missing or invalid Account ID / Invitation ID: The node requires both identifiers to be provided and non-empty. Ensure these inputs are correctly set.
- API authentication errors: If the API token is invalid or missing, the request will fail. Verify the API key credential setup.
- Failed to cancel invitation: If the API returns an error (e.g., invitation not found), the node throws an error with a message "Failed to cancel invitation". Check that the invitation ID exists and belongs to the specified account.
- Network issues: Connectivity problems may cause HTTP request failures. Retry or check network settings.
Links and References
- Infomaniak API Documentation - Invitations (hypothetical link as per context)