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
Wei Dong 10Wei Dong 10 

How to verify a user?

Hi,

In my RESTful API suppose I have a username and a password, how can check whether the user is verified (I cannot fetch the password and do checks...)?
SFDC Prime SquadSFDC Prime Squad
Hi,

There are two aspects of it : Authorization and Authentication.
Please check : https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_understanding_username_password_oauth_flow.htm
 
GovindarajGovindaraj
Hi Wei,

Hoping that you setup connected app :)

Using Postman, you can verify,

1. Download URL :- https://www.getpostman.com/
2. https://<instance>.salesforce.com/services/oauth2/token?grant_type=password&client_id=<Consumer Key_Here>&client_secret=<Consumer Secret_Here>&username=<UserName>&password=<Password+SecurityToken>

If you receive the access token then it means the user is authenticated. Then using the token you can perform the other actions.

REF : http://amitsalesforce.blogspot.com/2017/06/test-salesforce-api-by-postman-rest.html

Thanks,
Govindaraj.S