0

I am getting below -

{"error":"invalid_grant","error_description":"user hasn't approved this consumer"}

Dev org To Dev Org, below are the connected app - enter image description here

  • 1
    Is your connected app set to let users self-authorize, or have an admin pre-authorize user roles (or is it profiles? I forget). In either case, have you gone through an interactive flow in your target org? If it's the former, have you (or the target user) gone through an interactive flow to explicitly authorize the connected app? – Derek F Mar 6 '18 at 19:43
  • @nirmallya, Usually, the above error is seen when the settings are set to admin approved, and the users profile hasn’t been added through the connected app authorized profiles – glls Mar 6 '18 at 19:49
  • Connected App settings are set to admin approved and added system admin profile.. still i am getting same error. – Nirmallya Ghosh Mar 7 '18 at 6:12
  • Repeating again what I previously said..."*In either case, have you gone through an interactive flow in your target org?*". Your Connected App needs to be approved once by someone using a different flow before you can use the JWT flow (and it may need to be a flow that normally generates a refresh token). – Derek F Mar 7 '18 at 13:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.