mtdmitchell Posted March 26, 2010 Posted March 26, 2010 Could any one tell me how i would redirect a user based on the OU to a particular site in sharepoint? Basically i have 1 site for staff and 1 for students.
u8dmtm Posted March 26, 2010 Posted March 26, 2010 Are you trying to redirect them before they enter Sharepoint, on a specified landing page in Sharepoint or from everywhere in Sharepoint?
mtdmitchell Posted March 26, 2010 Author Posted March 26, 2010 (edited) Im trying to redirect users when they log in, so the two different groups have seperate landing pages Edited March 26, 2010 by mtdmitchell
u8dmtm Posted March 26, 2010 Posted March 26, 2010 If you are confident coding in ASP.Net then you could code a landing page which works along the lines of the following: [C#] private void Page_Load(object sender, System.EventArgs e) { string userName = this.User.Identity.Name; if ( this.User.IsInRole("Administrators") ) { Write(userName + " is a member of the Portal Administrators group."); } else { Write(userName + " is not a member of the Portal Administrators group."); } } [Visual Basic] Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)Handles MyBase.Load Dim userName As String = Me.User.Identity.Name If Me.User.IsInRole("Administrators") Then Write(userName + " is a member of the Portal Administrators group.") Else Write(userName + " is not a member of the Portal Administrators group.") End If End Sub And then redirect based on role.
mtdmitchell Posted March 26, 2010 Author Posted March 26, 2010 Hmm im not confident coding in ASP.Net in fact i dont know anything about it. I do know a little scripting and XHTML, Css. So i think if im pushed in the right direction i work it out.
u8dmtm Posted March 26, 2010 Posted March 26, 2010 Take a look at the following, which may help you: SPUtility.Redirect Method (Microsoft.SharePoint.Utilities) 1
mtdmitchell Posted March 26, 2010 Author Posted March 26, 2010 Thanks i'll take a look over the weekend
gpjt Posted March 26, 2010 Posted March 26, 2010 We have a landing page for all users when they login and enables you to give access to specific sites. For example at the top level site, just a basic page with the different portals linked on the current navigation bar on the left hand side where staff, sudents portals etc are linked. Set groups up for each user type and place all the users that you want to give access to certain areas in the groups i.e staff, students, governers etc. You can now give them access to the different portals and once they login then it only shows which portal they have access too. Need any further help let us know.
mtdmitchell Posted March 26, 2010 Author Posted March 26, 2010 thanks gpjt, I already have the sites restricted by user group i just wanted users from the staff group to land on a staff only page when they log in.
mavhc Posted March 26, 2010 Posted March 26, 2010 Are you wanting to set a different IE home page? If so use group policy. Or do you want an IE window to open upon logon? If so use a group policy log on script perhaps.
mtdmitchell Posted March 26, 2010 Author Posted March 26, 2010 (edited) I need to re-direct users when they are logging in to sharepoint,they arent always going to be on our network so GP would not work. they could be using a home pc for example. Edited March 26, 2010 by mtdmitchell
andykemp Posted March 27, 2010 Posted March 27, 2010 Not in anyway associated with SalamanderSoft, but I remembered reading this on their website: SalamanderSoft Limited - Redirect Web Part Not a free solution but looks like it does exactly what you are after... 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now