Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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?

share|improve this question
    
can the user do the delegated administration using the UI? –  Mark Wochnick Aug 25 at 20:49
    
User can do delegated administration through SF Community Portal –  Oscar Tang Aug 26 at 2:13
    
When I use a system admin account to login and create user using the same set of data, everything goes right. However a delegated external admin cannot do so. –  Oscar Tang Aug 26 at 2:58
    
Can someone help me on this issue? Thanks in advance. –  Oscar Tang Sep 8 at 4:06
    
Have you allowed the delegated user permissions to manage that profile? See help.salesforce.com/HTViewHelpDoc?id=networks_DPUA.htm for the example guide –  pbattisson Sep 16 at 15:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.