salesforce connector error - user hasn't approved this consumer

Hi :slightly_smiling_face: ,

I am trying to setup the configuration for salesforce connector in GCP. I followed the document

https://www.googlecloudcommunity.com/gc/Integration-Services/Application-Integration-Create-Salesforce-Connection-using-JWT/td-p/511566

and was able to successfully connect with my personal salesforce account. But now I am doing the same steps to connect with sandbox salesforce account and I am getting this below error

{ “error” : “invalid_grant”, “error_description” : “user hasn’t approved this consumer”}

Salesforce config as per the above mentioned document url to avoid this type of error is this one which I have configured below:

Any suggestions @Mamatha @dchiesa1 @Madhuvandhini @pramodvallanur . Your help is much appreciated. thanks

1 Like

Hi @shefali , This error is from Salesforce and the common cause is a lack of refresh token.

Please authorise the application using Step 3 from https://mannharleen.github.io/2020-03-03-salesforce-jwt/.

1 Like