I'm unable to login to Salesforce Workbench using a custom Salesforce domain for Sandbox environment. I'm getting the error invalid_grant:authentication failed. However if i try to sign on to a Salesforce.com production domain with another user, I was successful

  • 1
    Hi Kon, welcome to SFSE. Would you please edit your question to include the specific sequence of steps you perform that results in this error? Please also include any germane configuration details of your sandbox org (SSO, login policies, etc).
    – David Reed
    Apr 19, 2019 at 7:21

1 Answer 1


I finally figured out the issue. I selected Production in the Environment drop down when I should have selected Sandbox instead

  • workbench.developerforce.com developerforce.com invalid grant invalidgrant error invalid_grant . login error login problem. Kon (above) has THE SIMPLE ANSWER YOU ARE LOOKING FOR. Thank you Kon.
    – Sql Surfer
    Mar 16, 2021 at 15:57

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .