Replacing sudo_user in the old SOAP API in the new Sugar 7 REST API

sugarcrmdevelopers —  July 16, 2013 — 1 Comment

Many of you who are still using the original SOAP API ( located at the /soap.php endpoint ) have continued to use it over the updated versions because of various pieces of functionality that never made it to the newer APIs. As we are looking to drive more users towards the RESTful API in Sugar 6.7 and later, we’ve listened to you and have brought back ways to do those same things with the newest API.

One big one was the ability to ‘sudo’ or change to a different user as an admin user without having that user’s password. To do this, we’ve added the /oauth2/sudo/:user_name endpoint in the API for Sugar 7, as you can see in the code sample below…

Look forward to this and other developer features with the rollout of Sugar 7 this fall. If you are interested in looking into how to integrate with Sugar 7, let us know.

Trackbacks and Pingbacks:

  1. SugarCRM Developer Blog » Blog Archive » Getting the timezone of a user, via Web Services - August 29, 2013

    […] endpoint to get at preferences for the current user, but also combine it with the sudo call to switch to another user if you are an admin. Check out the following code example to see […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s