You need to sign in to do that
Don't have an account?
Ishan K Sharma
Create user via vf page
Hi
I want to create new user on the button click on my vf page. What should be the logic in my controller. Any advice
Thanks
Ishan Sharma
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Hi
I want to create new user on the button click on my vf page. What should be the logic in my controller. Any advice
Thanks
Ishan Sharma
Hi Ishan,
The easiest way is to add the Create New User Link in the Button.
Go to | Setup | Administration Setup | Manage Users| Users | Click New User Button | Now copy the URL and use it in your Button to Redirect.
Regards,
Ashish
Thanks for reply
I want to insert a record for user. I want to know is it possible via apex controller.
If you do not want to use standard new user functionality and keen to use apex controller then use the following code snippet
User u = new User();
// Set all mandatory parameters i.e. First Name, Last Name, Profile Id etc
insert u;
Let us know if you are looking for more details.