Skip to main content

Set User Properties

This node updates the properties of a user account.

The Set User Properties node modifies the currently logged-in user or a specific user record.

The Set User Properties node is a specialized utility for updating user data. It automatically exposes fields from the _User system collection (like email, username, and custom fields). It is safer and more specific than the generic Set Record Properties node when dealing with user accounts.

Inputs​

General​

DataDescription
EmailUpdate the user's email address.
UsernameUpdate the user's username.

Properties​

DataDescription
*Dynamic inputs for custom fields defined in your _User collection (e.g., "phoneNumber", "avatar").

Actions​

SignalDescription
DoTriggers the update operation.

Outputs​

Events​

SignalDescription
SuccessTriggered when the user properties are successfully updated.
FailureTriggered if the update fails (e.g., invalid email, username taken).

Error​

DataDescription
ErrorError message if the operation failed.

Usage​

Updating Profile​

  1. Connect a Text Input to the Username port.
  2. Connect a Text Input to the Email port.
  3. Connect a "Save Profile" button to Do.

Detailed Behavior​

  • Scope: By default, this operates on the current user session.
  • Validation: The backend will validate email format and username uniqueness.
  • Security: Users can generally only update their own properties unless specific cloud functions or admin roles are involved.

Troubleshooting​

  • Permission Denied: Ensure the user is logged in. You cannot update user properties anonymously.
  • Username Taken: If the Failure signal fires, check the Error output. It often indicates a duplicate username or email.