You need to sign in to do that
Don't have an account?
ahsens
Creating Users via API
Is it possible to create a SFDC user, create roles and set its rights via AppExcahnge API ?
Best Regards
Ahsen Saeed ( ahsensaeed@hotmail.com)
We do not have a way to set it through the API yet, but it's on our API roadmap
I'm getting the error "Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile."
Please find the details here:
My Salesforce developer id: mohammad.azad@hitechito.com
--------------------------------------------------------------------------------
PHP Code to create the user via API:
$sObject = new SObject();
$sObject->type = 'User';
$sObject->fields = array(
'Username' => 'mohammad@ktgraphics.com',
'LastName' => 'Last',
'FirstName' => 'First',
'Name' => 'First Last',
'Email' => 'mohammad@ktgraphics.com',
'Alias' => 'mohammad@ktgraphics.com',
'CommunityNickname' => 'mohammad@ktgraphics.com',
'IsActive' => 'true',
'TimeZoneSidKey'=> 'America/New_York',
'LocaleSidKey' => 'en_US',
'EmailEncodingKey' => 'ISO-8859-1',
'ProfileId' => '00e80000000pdX4AAI',
'LanguageLocaleKey' => 'en_US',
);
$rsp = $client->create(array($sObject));
--------------------------------------------------------------------------------
Here goes the response:
stdClass Object
(
[errors] => stdClass Object
(
[fields] => Name
[message] => Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile.
[statusCode] => INVALID_FIELD_FOR_INSERT_UPDATE
)
[id] =>
[success] =>
)
--------------------------------------------------------------------------------