I'd like to know how can I do to access to Active Directory information (eg: Department) of an User starting from an SPUser... I've User Profile Service configured and I see in Sharepoint those fields..
Thank you!
|
I'd like to know how can I do to access to Active Directory information (eg: Department) of an User starting from an SPUser... I've User Profile Service configured and I see in Sharepoint those fields.. Thank you! |
|||
|
|
|
You also can use the
here is the code:
|
|||||
|
|
You will need to load it from the User Profiles and not the SPUser object.
|
|||||||||
|