Firebase icon

Firebase

Interact with Firebase Admin SDK

Overview

This node integrates with the Firebase Admin SDK to manage user authentication and related operations. Specifically, for the Delete User operation under the Authentication resource, it allows you to delete a user account from your Firebase project by specifying the user's unique identifier (UID).

Common scenarios where this node is beneficial include:

  • Automating user lifecycle management in backend workflows.
  • Cleaning up user accounts that are no longer active or have violated terms.
  • Integrating user deletion as part of a broader data compliance or GDPR workflow.

For example, you could use this node to automatically remove users who request account deletion via a form submission, ensuring their data is removed from Firebase Authentication.

Properties

Name Meaning
User UID The UID of the user to delete

The User UID property is required and must be provided to specify which user account should be deleted.

Output

The output JSON contains a confirmation of the deletion operation with two fields:

  • success: A boolean indicating whether the deletion was successful (true).
  • message: A string message confirming the user has been deleted, including the UID.

Example output JSON:

{
  "success": true,
  "message": "User <UID> deleted successfully"
}

No binary data is produced by this operation.

Dependencies

  • Requires a valid Firebase service account credential configured in n8n to authenticate with the Firebase Admin SDK.
  • The node depends on the Firebase Admin SDK's Authentication module to perform user management operations.
  • Proper permissions must be granted to the service account to allow user deletion.

Troubleshooting

  • Invalid service account JSON format: Ensure the JSON credentials provided are correctly formatted and valid.
  • Failed to initialize Firebase: Check that the service account has the necessary permissions and the JSON is correct.
  • Operation not supported: This error occurs if an unsupported operation is requested; verify the operation name is correct.
  • User not found or invalid UID: If the specified UID does not exist, Firebase will throw an error. Verify the UID before attempting deletion.
  • Permission denied: The service account may lack sufficient privileges to delete users; update IAM roles accordingly.

To resolve errors, confirm the service account credentials, validate input parameters, and ensure network connectivity to Firebase services.

Links and References

Discussion