Getting Hierarchy Of User Profiles In SharePoint Using C#
Below is the examples respectively for
- Find immediate manager of a particular user.
- All the users who reports the same manager.
- All the managers above in the chain for a particular user
Add Following Dll Before Coding.
"Microsoft.Office.Server.dll & Microsoft.Office.Server.UserProfiles.dll"
Location For The Dll:
Find Manager for currently logged in user.