Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

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")

share|improve this answer
    
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 Mar 29 '10 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. –  Nick Hadlee Mar 29 '10 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 Mar 30 '10 at 8:21

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

share|improve this answer

Your Answer

 
discard

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.