Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

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.

The update of a user is the same as updating any other object, which inherits from EVObject.

Single User

The following code snippet will change the display name for the user.

EVDataStore *dataStore = [EVDataStore sharedInstance];
testUser.displayName = @"New User Name";
[dataStore update:testUser block:^(BOOL success, NSError *error){
        // success indicates if the update was successful
}];

Multiple Users

The following code snippet will change the display name for all users that match the predicate.

EVDataStore *dataStore = [EVDataStore sharedInstance];
testUser.displayName = @"New User Name";
[dataStore update:testUser withPredicate:[NSPredicate predicateWithFormat:@"DisplayName == 'Some Display Name'"] block:^(BOOL success, NSError *error){
        // success indicates if the update was successful
}];
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.