Updating User Accounts

Updating User Accounts

The user account update operation is a data operation that allows you to modify the fields of the user account object stored in the Users content type.

Single User

To update a user account of your application, you have to execute the following code snippet:

public void updateUserById(EverliveApp app, UUID userId, User updateObject)
{
    app.workWith().users().updateById(userId, updateObject).executeSync();
}

Multiple Users

To update multiple items of your type with a single operation, you have to execute the following code snippet:

public void updateUsersByFilter(EverliveApp app, string username, string displayName)
{
    User updateUser = new User();
    updateUser.setDisplayName(displayName);
    app.workWith().users().
        update(updateUser).
        where(new ValueCondition("Username", username, ValueConditionOperator.EqualTo).
        executeAsync();
}
Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.