Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Custom Access Denied Page with Login in Sharepoint 2010

Posted on 2011-03-01
5
Medium Priority
?
793 Views
Last Modified: 2012-05-11
I'm working on an SBS 2008 box which has been upgraded to Sharepoint Foundation 2010. We have a couple of computers that are "kiosk" machines and are logged in with a domain account with very limited access. This does include some read access to certain parts of the sharepoint site. However, in order to contribute, especially to issue tracking areas of the site, I want the users to login using their own domain accounts.

So, I am looking for a way to simplify the process of prompting the user for login credentials whenever they try to access a part of the web that they do not have access to. Ideally, I would like to do a custom access denied page with a login form right on the page, as if the user had already clicked the "sign in as a different user" link. I would settle for the abiliy to customize the access denied page to give the user some specific direction and maybe change the hyperlink for signing is as a different user to a more predominant button, or something of that nature.

I have Sharepoint Designer 2010 installed and I am pretty comfortable using that, but I have EXTREMELY limited code experience. So, I would need some pretty specific direction if this will require custom code to be written.  

THanks in advance for any help.
0
Comment
Question by:bigintegration
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 6

Expert Comment

by:psv1973
ID: 35009737
I might be wable to help you here.

Interesting idea.

When you login as a different user the system visits the following url.

http://yourhosturl/_layouts/closeConnection.aspx?loginasanotheruser=true&Source=http%3A%2F%2Fyourhosturl%2FLists%2FAList%2FAllItems%2Easpx

So all you will need to do is replace the access denied page with a redirect to the above url.
0
 
LVL 6

Expert Comment

by:psv1973
ID: 35009752
By the way you can probably scip the source= bit in the query string
0
 
LVL 1

Accepted Solution

by:
bigintegration earned 0 total points
ID: 35027240
Interesting it is :)

So, you do need the Source= bit because that tells Sharepoint where to re-direct to after the login.  Without it, it just goes into an infinite loop of redirects.

Replacing the access denied page with a re-direct is not going to work, then, because the link would need to be custom depending on which page was requested and subsequently denied.

However, you've brought me to another idea, which is to just give that Kiosk account "view" privledges, and then add a hyperlink to the bottom of the view page using the CEWP that sends them to the NewItem form using the link you suggested. In doing that I think I can allow them to look at "Issues" in the list under the generic login, but when they want to add one, force them to login with their domain account so we can track the authors. I'll try it and see if it works.
0
 
LVL 12

Expert Comment

by:Hairbrush
ID: 37693390
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0

Featured Post

Office 365 Training for Admins - 7 Day Trial

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Pimping Sharepoint 2007 without Server-Side Code Part 1 One of my biggest frustrations with Sharepoint 2007 in the corporate world is that while good-intentioned managers lock down the more interesting capabilities of Sharepoint programming in…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question