Actions7
Overview
This node integrates with the Firebase Admin SDK to manage Firebase Authentication users programmatically. It allows you to perform various user-related operations such as retrieving user details by UID, verifying ID tokens, listing users, creating, updating, deleting users, and generating custom authentication tokens.
A common use case is automating user management tasks in backend workflows, for example:
- Fetching detailed user information by their unique identifier (UID) to sync with other systems.
- Creating new users automatically when onboarding customers.
- Updating user profiles based on external data changes.
- Deleting users who no longer have access.
- Generating custom tokens for secure client authentication.
Specifically, the "Get User by UID" operation retrieves all available information about a Firebase Authentication user given their UID.
Properties
| Name | Meaning |
|---|---|
| User UID | The unique identifier (UID) of the Firebase Authentication user to retrieve. |
Output
The output is a JSON object representing the Firebase user record corresponding to the specified UID. This includes fields such as:
uid: The user's unique identifier.email: The user's email address.displayName: The user's display name.phoneNumber: The user's phone number.emailVerified: Whether the user's email is verified.disabled: Whether the user account is disabled.creationTime: Timestamp when the user was created (ISO string).lastSignInTime: Timestamp of the last sign-in (ISO string).- Other standard Firebase user properties.
The node removes internal metadata and provider data from the output for clarity.
If the node is configured to handle multiple items, each item's output will be paired accordingly.
No binary data output is produced by this operation.
Dependencies
- Requires a valid Firebase service account JSON credential with appropriate permissions to access Firebase Authentication.
- The node depends on the Firebase Admin SDK (
firebase-admin/auth) to interact with Firebase services. - Proper configuration of the Firebase API credentials within n8n is necessary before using this node.
Troubleshooting
- Invalid service account JSON format: Ensure that the provided Firebase service account JSON is correctly formatted and complete.
- Failed to initialize Firebase: Check that the service account has the required permissions and that the JSON credentials are valid.
- Operation not supported: Verify that the selected operation matches one of the supported Firebase Authentication operations.
- User not found errors: When retrieving a user by UID, ensure the UID exists in your Firebase project.
- Invalid custom claims JSON format (for other operations): If providing custom claims, ensure the JSON string is valid.
To resolve these issues, double-check credentials, input parameters, and ensure network connectivity to Firebase services.