I am using nForce libaray with node.js. Everything's go right and we perform CRUD on Case object.
However when we would like create User using an external account with "Delegated External User Administrator" permission, problem happens.
The API returns the following message:
{errorCode: "INVALID_FIELD", messageBody: "No such column 'profileid' on sobject of type User", statusCode: 400, $get: function, $save: function…}
This is the data we sent to https://<org domain>/services/data/v30.0/sobjects/user
using HTTP POST
:
{ "Username": "[email protected]", "LastName": "API", "Email": "[email protected]", "Alias": "testapi", "TimeZoneSidKey" : "America/Los_Angeles", "LocaleSidKey" : "en_US", "EmailEncodingKey" : "ISO-8859-1", "ProfileId" : "00e90000001a88W", "LanguageLocaleKey" : "en_US", "ContactId": "00390000013gwDS" }
How come there is no 'profileid' column? I can create an user using an internal admin account with the same set of data on REST API.
Can user with "Delegated External User Administrator" permission create new external user through REST API?