CRM 2011 – How to open CRM as a different user

Sometimes you need to open CRM 2011 as a different user so you can test security privildges and functionality that certain users should/shouldn’t be able to use.

You can do this in internet explorer by going to the tools section on Internet explorer -> Security -> Custom Level -> scrolling right the way down to the bottom and changing the authorisation for prompt for username and password

The downside of this is it means you have to put in a password every time you access CRM, which can get very frustrating.

I found a slightly easier way to do this.  You can choose to run internet explorer as another user.  To do this you will need to make a .bat file with the line below.

runas /user:username@domain “C:\Program Files (x86)\Internet Explorer\iexplore.exe http://<yourcrmserver>/loader.aspx”

an example is

runas /user:#HOSK@HOSKDOMAIN”C:\Program Files (x86)\Internet Explorer\iexplore.exe http://crm2011/Demo/loader.aspx”

runas /user:username@domain “C:\Program Files (x86)\Internet Explorer\iexplore.exe http://<yourcrmserver>/loader.aspx”

The example is set for Windows 7, if you have an older version of windows you probably will need a different path to internet explorer e.g. not (x86) and just Program Files,

runas /user:<testuser>\<domain> “C:\Program Files\Internet Explorer\iexplore http://&lt;yourcrmserver>/loader.aspx”

Where it says username and domain you will need to provide the username and domain for the user.

It will then have opened Internet Explorer as that user.  You will then need to put in your username and password again when you start CRM.

So is that an improvement?  it is a little bit of an improvement because when you open internet explorer as normal it will remember your usual authentication.

Hopefully someone might have a better solution but this one might help you

10 thoughts on “CRM 2011 – How to open CRM as a different user

  1. Shai Bar-Lev November 24, 2011 / 7:22 pm

    If you use IP address of the crm server in the URL , it will pop-up the login dialog , and you can use any CRM user.

    Like

  2. jbesch November 25, 2011 / 1:39 am

    In Windows 7 >> Click the Start button >> In the search box that appears type the word iexplore >> Shift+Right Click on the iexplore.exe entry in the program list >> Click ‘Run as different user’

    Like

    • Hosk November 25, 2011 / 1:47 am

      Excellent tips and will save me running a bat file.

      Thanks for the comments

      Like

      • Jharana Baliyar Singh March 4, 2016 / 6:00 am

        Hi Hosk,

        Can we open CRM onpremise without login credentials ? I know its a funny question but I saw in forum someone has been posted this question.As per my understanding we can’t.For starting anyhow we required credentials for login After then if we r closing crm & again opening crm that time its not required.Please correct me where i am wrong…

        Thanks,
        Jharana

        Like

  3. Mark October 31, 2016 / 11:48 am

    Ben. I’ve run into this issue over the weekend. I have two user accounts on CRM that I use for different Business units. Example, on my PC I’m logged in as Mark1, and mistakenly logged into CRM via my browser (Opera), using Mark2… Now I can’t seem to log into CRM as Mark1 as each time I open my browser and go to CRM it loads with the other user. I’ve tried clearing cache, change the Internet settings as described in your blog to force login, I’ve restarted CRM, ADFS, and still it opens Mark2.. CRM 2016, on-prem, ADFS.. Am i missing something obvious?

    Like

  4. Mark October 31, 2016 / 11:59 am

    Ok, let me take that back… in Internet Options, Security, I was changing the custom level under ‘Internet’ and not ‘Local Intranet’. Having changed the custom setting under Local Intranet to ‘prompt for username and password’ it now asks for the correct login details and now I can log in as Mark1. Panic over…

    Like

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.