function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ikram Momin 16Ikram Momin 16 

Are there REST APIs available to manage Users and Groups Objects in salesforce?

We are working on solution where we want to manage User, Groups(Public Groups, Roles etc), Query these Salesforce objects data.

Also we want to provision Users.
There are Entrprise SOAP APIs available in salesforce to manage User and Group objects.
We want to know are there similar REST APIs available? If yes, please share the documents.

Also which APIs are preffered to use REST or SOAP?

SwethaSwetha (Salesforce Developers) 
HI Ikram,

Salesforce provides both SOAP and REST APIs to manage User and Group objects. The Enterprise SOAP APIs can be used to manage these objects. However, Salesforce also provides REST APIs to manage User and Group objects. The REST APIs are more flexible and allow data to be exchanged in multiple formats

The Salesforce REST API Developer Guide provides detailed documentation on how to use the REST APIs to manage User and Group objects

When deciding between SOAP and REST APIs, it depends on the specific use case. SOAP is a structured protocol that provides standardization and enhanced security, making it ideal for developing private APIs, especially for large enterprises.

REST, on the other hand, is more flexible and efficient, making it ideal for newer contexts like mobile application development, serverless computing, and the Internet of Things (IoT)

REST APIs are also easier to use and more data-driven compared to SOAP, which is strongly function-driven

Related: https://www.soapui.org/learn/api/soap-vs-rest-api/

If this information helps, please mark the answer as best. Thank you