SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Clicking the "sign in as a different user" link from the system menu in SP 2010 yields an access denied error.

URL is:


any ideas?

share|improve this question
Is this a site that was created using the publishing template? – Lori Jan 19 '12 at 17:17
Are you getting authentication popup when you click on "Sign in as a different user" or is it directly bringing the access denied error? Is it a particular user who is getting access denied error when passing the credentials? – Deepu Nair Jan 19 '12 at 17:40
Have you tried the other url : /_layouts/accessdenied.aspx?loginasanotheruser=true – Vamsi Jan 19 '12 at 17:41
Also check to see if the ViewFormsLockDown feature is enabled. It is by default when using the publishing site template. – Lori Jan 19 '12 at 18:13
The slashes are the wrong way. – RJ Cuthbertson Aug 14 '13 at 19:41

If you have customized the AccessDenied page, this could be a reason:

"For some reason re-login feature (“Sign in as Different user”) is implemented via access denied page. Click on your name in the top right corner and select ‘Sign in as different user’. You will get access denied page. Strange but it is true!! No idea why it is done this way (other than someone took a shortcut approach).

So now, you need to implement the ‘Sign in as different user’ login in your new accessdenied.aspx page"

See more here:

share|improve this answer
Please just dont provide the links, by all means paraphrase or express the answer in your own words, so that it will be like adding more credit to this site rather than navigating to another site for answer. Please do follow as per the below link – Karthik Jaganathan Oct 16 '13 at 9:55
added explanation! – daniel Oct 17 '13 at 14:41

I had a similar issue. I face a error "Access Denied" when open my aspx page in the popup. Here there is a code:

var dialogOptions = {
    url: '/_layouts/TestFeature/Test.aspx?currentUrl=' + window.location.href + '&selectedIds=' + ids,
    title: 'Test popup',
    allowMaximize: true,
    showClose: true,
    width: 550,
    height: 200


I killed whole day searching a solution. And the solution was very simple. I had to delete the first '/' in the url!!!

url: '_layouts/TestFeature/Test.aspx?currentUrl=' + 

Maybe it will be helpful for someone.

share|improve this answer
Please create a new question (you can link to this question if you feel they are related) – Anders Rask Aug 15 '13 at 6:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.