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
Karuna S 8Karuna S 8 

Unable to login as a user using Rest API

i am unable to login as a user using REST API, same is working fine with Administrator. Can any one please help me out in this ?

I have assigned all required permissions for user ( API Enabled, Modify all data, Connected apps and also crated connected app).

Tried with user by assigning system administrator profile, still its not working.
camelUsercamelUser

Are you using the correct Secutity token for that user? 

Security token can be requsted by navigating to user profile > settings > my personal infomation >  Reset My Security Token 

You can test the auth process using the below:

curl https://YOUR URL/services/oauth2/token -d "grant_type=password" -d "client_id=Connected app Consumer Key" -d "client_secret=Connected app Consumer Secret" -d "username=example@example.com" -d "password=Password+Security Token"