Friday, September 16, 2011

To find the user name of a Manager of an user programatically




You can use spUser object to find the required user from Users collection of a site.
Instantiate a UserProfileManager object and assign the UserProfile by executing profileManager.GetUserProfile method.
The profile collection has a tag "Manager", retrieving that Value will give you the result.

No comments:

Post a Comment