We have SharePoint 2010 Version ,
Username format is : LastName,FirstName
have used Username() but that returns username, i am looking for FirstName and LastName ..as well as Manager Name and Manager's email ID.
If i use Account ID and set Username() funcrion then ,in people picker it gives me "Username"....
What i am looking for is LastName,FirstName ...it maps to "Displayname " property in AD..
How to get User's email,Users Manager Name and other data ..??
You have to query the User Profile Service. Did you not find the many articles and references to this when you searched?
SharePoint Architect || Microsoft MVP || My Blog
Planet Technologies || SharePoint Task Force
Thanks for your reply.I found your blog and following two posting :
It worked for SharPoint 2010 version like a charm,
How do i find what profile property supported in our environment ?
As i want to retrieve Manager's EMail ID ,Manager'S Lastname,FirstName
I am using "Manager" property so it is giving me Manager's Username :
example : Contoso\ KKing
Where as requirement says LastName,FirstName for MANAGER ,,Also Managers Email ID as well..
Any thoughts ?? Thank you for your time.