Does anyone know if it’s possible to add a link to the global Navigation bar that would re-direct users to a particular subsite based on a field (such as their Department or Office field) in their user profile or Active Directory account?
I basically want to have a link in the Navigation bar called “Office” that when clicked, takes you to your team page based on the Office field you have in your profile. Is there a way to do this?
Thanks.
Jamie
Thanks for OOB Solution, infact my requirement is everyone has read access on these subsite, but its a department subsite where has to redirect them away from Home page when clicked on “My Department” link
A no-code solution would be to create Audiences that includes the relevant users for each subsite, then add and configure navigation links to only display for the relevant audiences.
Yes, you can do it. We have had such a request by the client. Our process is:
Use AD user attributes.
- When users log on the sharepoint site Or click a department link.
- We can create a background page( User Control/ Redirect WebPart/ CEWP … etc ) to get user AD account.
- Then you can transition into the DirectoryServices namespace to get any property you need.
- Finally redirect URL to proper site.
Use User Profile Services.
- Using UserProfile class (Represents a user profile for a person in the user profile database.)
- Sample Code
did u fix that issue?