Tuesday, 19 May 2020

Reset security token for Salesforce Integration



A security token is a case-sensitive alphanumeric code that we append to our password or enter in a separate field in a client application. We use it (user password + security token) to authenticate with salesforce from an external system. When we change our password, the security token is also regenerated.

In the production environment, we usually have a separate user with a profile having 'password never expire' option selected.

Ideally, in order to generate a security token, we need to go to:

Click on user icon > Settings > search for 'Reset My Security Token' > Click 'Reset Security Token' and then a new security token is sent to the email address. 

But what to do if that option is not available in the personal user settings?




Recently I came across a similar situation, I was having system administrator profile and there was no IP restriction as well. I was not able to see the option 'Reset My Security Token' in personal user settings.

I came across a URL hack using which we can easily use to generate/re-generate our security token.

You need to append following URL to your org sandbox instance URL:

https://<YourDomain>.lightning.force.com + /_ui/system/security/ResetApiTokenEdit?retURL=%2Fui%2Fsetup%2FSetup%3Fsetupid%3DPersonalInfo&setupid=ResetApiToken




Check out my short video for more details.



Keep Learning...!!! Keep Sharing...!!!

Follow me on Linkedin: sud-gupta

No comments:

Post a Comment

LWC Component Bundle | Build your first component | Core Concepts

In my previous blog , I explained all the pre-requisite steps to set up the LWC development environment on your system. Now I'll expl...