cancel
Showing results for 
Search instead for 
Did you mean: 

Confusion with UserManagement SearchUsers

Former Member
0 Kudos

I have Imported SAP.Portal.Services.UserManagement and am looking to search user Display Names based on a users LogonID. Here is my code so far:

....

Dim uInfo As UserInfo = um.SearchUsers(strLogonID)

If someone can explain how to get this to return the Display Name after using an Input for the LogonID, that would be great.

Regards,

Peter

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Try this :

um.GetUser(User.Identity.Name).DisplayName

Regards,

Ofer

Former Member
0 Kudos

Ofer,

Thanks for the response. But this code returns the name of the current user that is using the iView. I would like to have a textbox. And in this textbox you would enter a LogonID and then click a button. When the button is clicked the Display Name of the entered LogonID is printed out.

Regards,

Peter

Former Member
0 Kudos

Hi Peter,

Try the following:

um.GetUser(userID).DisplayName;

where userID is a string with the value of the user's ID.

Regards,

Tsachi

Former Member
0 Kudos

Thanks.

Former Member
0 Kudos

Have you filled the PDK for .NET survey yet? You can win an MP3 player!!!

http://feedback.sap.com/efs/vote?campaign=39c7899ecca40a6709a638bd0388ac8b&org=332

Answers (0)