Actions42
- listUsers
- registerTOTP
- addHumanUser
- getUserByID
- setEmail
- resendEmailCode
- verifyEmail
- setPhone
- removePhone
- resendPhoneCode
- verifyPhone
- updateHumanUser
- deactivateUser
- reactivateUser
- lockUser
- unlockUser
- deleteUser
- registerPasskey
- verifyPasskeyRegistration
- createPasskeyRegistrationLink
- listPasskeys
- removePasskey
- registerU2F
- verifyU2FRegistration
- removeU2F
- verifyTOTPRegistration
- removeTOTP
- addOTPSMS
- removeOTPSMS
- addOTPEmail
- removeOTPEmail
- startIdentityProviderIntent
- retrieveIdentityProviderIntent
- addIDPLink
- listIDPLinks
- removeIDPLink
- passwordReset
- setPassword
- listAuthenticationMethodTypes
- createInviteCode
- resendInviteCode
- verifyInviteCode
Overview
This node provides an interface to interact with the Zitadel API, a platform for identity and access management. Specifically, the removePasskey operation under the UserService resource allows users to remove a passkey associated with a user account. This is useful in scenarios where a userβs security credentials need to be revoked or updated, such as when a device is lost or compromised.
Practical examples include:
- Removing a registered hardware security key (passkey) from a user's account.
- Managing user authentication methods programmatically within automated workflows.
- Enhancing security by revoking outdated or unused passkeys.
Properties
| Name | Meaning |
|---|---|
| Service | The Zitadel service to use. Options: UserService, OrganizationService, AuthService, ManagementService, AdminService, ZITADELActions, UserSchemaService. For this operation, select UserService. |
| userId | The unique identifier of the user whose passkey you want to remove. |
| passkeyId | The unique identifier of the passkey to be removed from the specified user. |
Output
The node outputs a JSON object representing the response from the Zitadel API after attempting to remove the passkey. The exact structure depends on the API's response but typically includes confirmation of the removal or error details if the operation failed.
No binary data output is produced by this operation.
Example output JSON structure (simplified):
{
"result": "success",
"removedPasskeyId": "string"
}
Dependencies
- Requires an API authentication token (Personal Access Token) for Zitadel, configured in n8n credentials.
- Connects to the Zitadel API endpoint at
https://zitadel.studentcouncil.dk. - Uses gRPC client libraries internally to communicate with Zitadel services.
Troubleshooting
Common issues:
- Invalid or missing userId or passkeyId parameters will cause the operation to fail.
- Authentication errors if the API token is invalid or expired.
- Network connectivity issues to the Zitadel API endpoint.
Error messages and resolutions:
- "Unauthorized" β Check that the API token credential is correctly set and has sufficient permissions.
- "User not found" β Verify the
userIdis correct and exists in the Zitadel system. - "Passkey not found" β Confirm the
passkeyIdcorresponds to a passkey registered to the specified user. - JSON parsing errors β Ensure input parameters are provided as plain strings; the node attempts to parse JSON but expects simple string inputs for these fields.