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
divyanshudivyanshu 

Password for User

Hi everyone

 

Can we setup Password for the user using apex code.

 

If so,then plz give me some hint.

 

thanxs in advance

 

regards

divyanshu

sebcossebcos

Hi,

yes you can.

This is the API you would use to do it:

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_system.htm . look for setPassword.