Auto-Login Bookmark

Since I work with a number of different customers and access multiple 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 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.

If you want to access the salesforce sandbox, you should use

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


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:

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


  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:

    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:

  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


  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:

  10. Lori Said,

    November 9, 2012 @ 10:46 am


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

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


RSS feed for comments on this post