cancel
Showing results for 
Search instead for 
Did you mean: 

User's mail in PDK for .NET

Former Member
0 Kudos

Hi everyone,

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?

Thanks!

Roy

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

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

Former Member
0 Kudos

Thanks!

The reference didn't mention it and I didn't try it out myself...

Thanks again.

Roy

Answers (0)