function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ravi Kumar 259Ravi Kumar 259 

I have a requirement ,i have 400 records were i would like to update the role for the users?how do u achieve this?

PratikPratik (Salesforce Developers) 
Hi Ravi,

You can do it using DataLoader or workbench (https://workbench.developerforce.com/login.php) . You can update the UserRoleId  for the users.
Extract the userids and then add a column in csv file for new UserRoleId that you want to change and then perform the Update operation.

Thanks,
Pratik
Ravi Kumar 259Ravi Kumar 259
send me sample code for that(  using Workbench)