Auto-Login Bookmark

Share

Since I work with a number of different customers and access multiple Salesforce.com instances, I have to keep track of a bunch of usernames and passwords. Rather than write it all down and type in the username and password on the login screen, I keep a bookmark for each login that puts me right into Salesforce.com without having to type in the username and password.

To do this, you want to start your bookmark’s URL with the standard login page. Make sure and use HTTPS.

https://www.salesforce.com/login.jsp

If you want to access the salesforce sandbox, you should use https://test.salesforce.com/login.jsp

You can then add parameters for your username and password. For example, if your login in scott@example.com and your password is qwerty, the rest of your bookmark’s URL will contain the following:

?pw=qwerty&un=scott@example.com

The ? is used to start tell the browser that name/value pairs follow. You should put a & between each name/value pair. pw is the name for the password parameter and un is the name for the username parameter.

Putting it all together, your bookmark’s URL would be:

https://www.salesforce.com/login.jsp?pw=qwerty&un=scott@example.com

NOTE: Do not save these bookmarks on sites like del.icio.us. Since your password is in the URL, everyone could see it. Del.icio.us is a public bookmarking system. Keep these bookmarks closely held.

10 Comments »

  1. Steve Said,

    January 25, 2006 @ 8:46 am

    Thanks for the tip–makes managing multiple logins a breeze.

  2. Steve Said,

    January 25, 2006 @ 9:20 am

    If you have special characters in your username or password, you may have to encode them in the url. I use a + in my logins, which encoded looks like this:

    https://www.salesforce.com/login.jsp?pw=SomePass&un=steve%2Bcustomer@email.com

    The %2B is the encoded form of +. Here’s a list of common encodings with a form that will tell you the encoding of any character:

    http://www.blooberry.com/indexdot/html/topics/urlencoding.htm

  3. Mark Esdale Said,

    January 25, 2006 @ 12:49 pm

    Great tip Scott … thanks

  4. Sivea Said,

    September 15, 2006 @ 12:11 pm

    good one

  5. Richard Said,

    June 23, 2008 @ 8:14 am

    Thanks for this is very useful.
    Is there any way to save a bookmark as say a report and then pass your user name and password so that it logs you in and then runs the report

    thanks

  6. Scott Hemmeter Said,

    June 23, 2008 @ 8:22 am

    @Richard: There are ways to auto-login to Salesforce via a bookmark, but I am not sure how to do it where it takes you right to a report. If you did attempt this, the downside is that you’d be storing your username and password inside the bookmark, which is a security no no.

  7. Richard Said,

    June 23, 2008 @ 12:16 pm

    Hi Scott, realise that although more than happy to have the password and user name stored as most of the users i work with have a bookmark logging into SFDC anyway so this wouldnt be a problems, especially with the IP resturctions.

  8. Salesforce Auto-Login Bookmarks « The Antikythera Said,

    September 30, 2009 @ 6:54 am

    […] This link was particularly helpful in learning about Salesforce’s auto login URLs. Published in: […]

  9. Cale Said,

    November 22, 2011 @ 12:12 pm

    This works for sandbox/production orgs as well, just use:
    https://test.salesforce.com/login.jsp?pw=qwerty&un=scott@example.com

  10. Lori Said,

    November 9, 2012 @ 10:46 am

    Hi,

    The shortcuts work, but I’m having trouble with this particular URL….

    https://sites.secure.force.com/partners/PP2PartnerLoginPage?un=username

    Didn’t work….. does this one have different params

    Thx

RSS feed for comments on this post · TrackBack URI

Leave a Comment

All comments are moderated. Other visitors will not see your comment until it has been approved.