I am trying to signup new users in my Sandbox from my Java code. I checked available API options for this i.e.
- SOAP API create() call
- REST API, POST user data to the sobject user endpoint
Problem with both the above calls is that, I don't see an option to set the User License adn every time it creates an user that consumes a Salesfroce licence. But my target is to create a mix of salesforce Users, Community Users, Chatter Users. Is there a way I can specify which UserLicense to be used while creating the user and will it be different request payload for community users.
1 respuesta
Please take a look at below code respectively for SOAP and Rest API.SOAP---------http://stackoverflow.com/questions/12493231/how-to-create-a-salesforce-user-with-soap-partner-apiREST------------http://stackoverflow.com/questions/19653221/how-to-create-user-in-salesforce-using-web-rest-api-from-cPlease mark it best if it helps you. Thanks in advance.Regards,Pawan Kumar