User's mail in PDK for .NET
I'm trying to get the email addresses of users in a iview that is developed in PDK.NET.
The problem is the userinfo class doesn't have this info (just first name, last etc).
Anyone has an idea how to get the user's mail?
Florin Vitan replied
try this :
SAP.Portal.Services.UserManagement.UserManagement um = new SAP.Portal.Services.UserManagement.UserManagement();
SAP.Portal.Services.UserManagement.UserInfo userIf = um.GetUser(this.User.Identity.Name);
string email = userIf.Email; // user email