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
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?