I would like to create users from outside sugarcrm system. Do you provide any API or hooks to create users? Please advise.
Hi Abhilash SS
Following is by using Code:
Put this code in a file and place it on the root folder of sugarCRM
$uid = create_guid();
$focus = new Users();
$focus->id = $uid;
$focus->user_name = 'Ramana Raju'; // like this you can give all your values
I hope it helps you.. if not can you please explain in brief what you want..
S Ramana Raju
Thank you Ramana.Let me try this.
You can make a POST call to Users module with following settings;
$url = $base_url . "/Users";
$record_arguments = array(
"first_name" => "TestFirstName",
"last_name" => "TestLastName",
"user_name" => "testuser",
"user_hash" => "password",
"status" => "Active",
"email" => "email@example.com"
$records = call($url, $oauth2_token_response->access_token, 'POST', $record_arguments);
This would create a user name testuser and its password is password.
If you are having difficulties please follow our Examples - /<module>/ POST - Developer Guide or How to Manipulate Records CRUD / Creating a Record - Developer Guide documentation.
Hope this helps.
Developer Support Engineer
Thank you Tevfik.I will try this.
Hi Tevfik Tümer
I'm reading a lot about loading users from beans and stuff, just wanted to know what is the best practice or path to update the reports_to and see the update on the memebership team.
Thank you very much.
Retrieving data ...