I have a portal based on a publishing portal. The portal (SPSite) contains has two websites (SPWebs) one is anonymously accessible and other one isn't. This works as expected.

Now I want to set the permissions for some aspx page of the anonymously accessible website so that they are not visible for authenticated users. So it's actually the opposite of anonymous access. User that are not logged in should see the aspx pages and logged in user shouldn't. The aspx pages are normal publishing pages of the publishing portal.

How could I archive this. Is this possible at all?

2 Answers 2


Have a look at this blog post I wrote last week and see if this helps. This doesn't permission the physical file, but you can use this technique to determine if you should show or not show content or a nav link based on the user. http://mike-greene.com/?p=309


You could write a custom redirect aspx page which checks if the user is authenticated and does a Server.Transfer("~/Authenticated.aspx") else Server.Transfer("~/Anonymous.aspx")

  • Mh, this won't be a solution for me because the single pages will show up in the navigation for both types (authenticated and unauthenticated) users and this is really confusing for the users.
    – Flo
    Commented Mar 29, 2010 at 11:16
  • You can hide the pages from the navigation. Just go to the "Modify Navigation" menu from the site actions, choose those two pages and make them hidden. Commented Mar 29, 2010 at 20:09
  • Yes, but to kick both pages out of the navigation won't be a solution either. The visibility of entries in the navigation should depend on the status of the user (authenticated/unauthenticated).
    – Flo
    Commented Mar 30, 2010 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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