cancel
Showing results for 
Search instead for 
Did you mean: 

SearchUser from DisplayName

Former Member
0 Kudos

Hello,

Does anyone know of a way to search for a users UniqueID from a DisplayName. I have tried using the SearchUser method but this only allows for you to search for a user using their UniqueID.

Thanks in advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Did you try using "SearchUsers"?

Regards,

Ofer

Former Member
0 Kudos

Yes I tried SearchUsers but from what a can make out it will only accept a uniquename as the input.

Former Member
0 Kudos

Well, I guess only way I see is to search for "*" and iterate through the results to find a match yourself.

Can I ask how you got to a state where you only have the Display Name and not the Unique ID? It seems to me that all functions return and take Unique ID...

Former Member
0 Kudos

I need to find the userid from the display name because I want a user to type a name and then search the ADS for all matches. The user will then be able to select a matching user and the system will then kick off some workflow using the selected users email, department etc.

I have now solved the porblem by searching the ADS using the DirectoryServices in C#.

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