Solved

Custom Access Denied Page with Login in Sharepoint 2010

Posted on 2011-03-01
5
778 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Microsoft SharePoint Foundation 2010 and Microsoft SharePoint Server 2010 do not offer the option to configure the location of the SharePoint diagnostic trace log files during installation.  This can, however, be configured through Central Administr…
SharePoint Designer 2010 has tools and commands to do everything that can be done with web parts in the browser, and then some – except uploading a web part straight into a page that is edited in SPD. So, can it be done? Scenario For a recent pr…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

751 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