cancel
Showing results for 
Search instead for 
Did you mean: 

How do I use SAP.Portal.Services.UserManagement?

Former Member
0 Kudos

I'm trying to get user information for the current user logged into the Portal using my .Net PDK iView. The documentation for the UserInfo class is not very helpful with no example code at all. How do I get a UserInfo class for the current user?

Accepted Solutions (1)

Accepted Solutions (1)

rima-sirich
Advisor
Advisor
0 Kudos

Hi Joseph,

Here is a sample code how to get information regarding current user:

UserManagement um = new UserManagement();

string userName = this.User.Identity.Name;

UserInfo user = um.GetUser(userName);

string fName = user.FirstName;

string lName = user.LastName;

Regards,

Rima.

Answers (0)