Shopware icon

Shopware

Shopware

Actions778

User → Update User

AI-generated

Overview

This node operation updates an existing user in the Shopware system. It allows modifying various user attributes such as username, email, name, locale, avatar, and other related details. This operation is useful for scenarios where user information needs to be maintained or corrected, such as updating contact details, changing user roles, or managing user preferences.

Use Case Examples

  1. Updating a user's email and username after they request a change.
  2. Modifying user locale and timezone settings to reflect their current location.
  3. Activating or deactivating a user account based on their status.

Properties

Name Meaning
Id Identifier for the user, used to specify which user to update.
Locale Id Locale identifier for the user, specifying the user's language and regional settings.
Username The username of the user.
First Name The first name of the user.
Last Name The last name of the user.
Title The title of the user (optional).
Email The email address of the user.
Active Boolean flag indicating if the user is active.
Admin Boolean flag indicating if the user has admin privileges.
Last Updated Password At Timestamp of the last password update for the user.
Time Zone The time zone setting for the user.
Custom Fields Custom JSON fields for additional user data.
Avatar Id Identifier for the user's avatar image.
Created At Timestamp when the user was created.
Updated At Timestamp when the user was last updated.
Extensions JSON object for additional extensions related to the user.
Locale JSON object representing the user's locale details.
Avatar Media JSON object containing media information for the user's avatar.
Media JSON array of media objects associated with the user.
Access Keys JSON array of access key objects related to the user.
Configs JSON array of configuration objects related to the user.
State Machine History Entries JSON array of state machine history entries for the user.
Import Export Log Entries JSON array of import/export log entries related to the user.
Acl Roles JSON array of access control list roles assigned to the user.
Recovery User JSON object representing the recovery user details.
Created Orders JSON array of orders created by the user.
Updated Orders JSON array of orders updated by the user.
Created Customers JSON array of customers created by the user.
Updated Customers JSON array of customers updated by the user.

Output

JSON

  • id - The unique identifier of the updated user.
  • username - The updated username of the user.
  • email - The updated email address of the user.
  • firstName - The updated first name of the user.
  • lastName - The updated last name of the user.
  • active - Indicates if the user is active.
  • admin - Indicates if the user has admin privileges.
  • localeId - The locale identifier associated with the user.
  • title - The title of the user.
  • lastUpdatedPasswordAt - Timestamp of the last password update.
  • timeZone - The time zone setting of the user.
  • customFields - Custom fields associated with the user.
  • avatarId - Identifier for the user's avatar image.
  • createdAt - Timestamp when the user was created.
  • updatedAt - Timestamp when the user was last updated.
  • extensions - Additional extensions related to the user.
  • locale - Locale details of the user.
  • avatarMedia - Media information for the user's avatar.
  • media - Media objects associated with the user.
  • accessKeys - Access keys related to the user.
  • configs - Configuration objects related to the user.
  • stateMachineHistoryEntries - State machine history entries for the user.
  • importExportLogEntries - Import/export log entries related to the user.
  • aclRoles - Access control list roles assigned to the user.
  • recoveryUser - Recovery user details.
  • createdOrders - Orders created by the user.
  • updatedOrders - Orders updated by the user.
  • createdCustomers - Customers created by the user.
  • updatedCustomers - Customers updated by the user.

Dependencies

  • an API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to the user identifier to update the correct user.
  • Verify that required fields like 'Username', 'Email', 'First Name', 'Last Name', and 'Locale Id' are provided to avoid validation errors.
  • Check API credentials and permissions to ensure the node can update user data in Shopware.
  • If the update fails, review the API response for error messages related to data format or missing fields.

Links

Discussion