Hello,
I have a issue that we have a sitecollection with different subsites. Each subsite describes different departments in the company. Suppose Hr department people logged in directly opens the HR subsite in sitecollection. How can change the site based on logged user? Can anyone please help me how to do this?
This can be by adding redirect logic in the homepage using jquery.
1) create SharePoint groups for each department and add respective users
2) Add a script link webpart in the home page
3) Using SPServices JQuery library, validate the user with the sharepoint group and add a redirect logic to the required department subsite
I am pretty sure you can do this kind of thing with Variations (it’s mainly for languages), but you can make it work for other scenarios by using customized root page landing logic : http://msdn.microsoft.com/en-GB/library/ms562040(v=office.14).aspx
Option 2 is that you can also do a simple (hidden) web part with some “if user is in HR group go here” logic, This just needs to be a hidden web part is really easy to do.
Thanks for your reply.
How can we do this based on using custom code.
You can let them all acces the home page(with info for ALL Departments) , and give them choices based on Audiences.
Not sure, if you can do a redirect based on Audience without dev.