User Management

These are actions that are available for the registered and authorized user only. The best approach is to store its accessToken in the variable to pass it to the action trigger.

How to get user data and use it across the application?

How to update the username?

How to update the user avatar?

  1. Get an avatar link from the input

  2. Save the updated avatar in the user data global variable

Updating username

The Update Username action is used to update the username for the logged-in user. If a new username is provided, it updates the user's profile with the new name; otherwise, it removes the username field. It sends a PATCH request to update the user's personal details using the x-account-userid and Authorization headers, which contain the user's ID and access token.

Once the username is successfully updated, the On Username Updated condition is triggered. The new username can be retrieved by calling the Get Username expression from the plugin.

Update avatar

The Update Avatar is used to update the avatar for the logged-in user. If a new avatar URL is provided, it updates the user's profile with the new avatar; otherwise, it removes the avatar field. It sends a PATCH request to update the user's personal details using the x-account-userid and Authorization headers, which contain the user's ID and access token.

Upon successful avatar update, the On Avatar Updated condition is triggered. The new avatar URL can be retrieved by calling the Get Avatar expression from the plugin.

Last updated