Get user by any profile value?
mushieslushie opened this issue · comments
Is there a way to get the user profile by a field other than the username?
I'm working on an interactive style floor map, and it would be helpful if I were able to get the user by their Office profile value.
There are three different operations in the UserProfile service to get a User Profile:
- GetUserProfileByGuid
- GetUserProfileByIndex
- GetUserProfileByName
You might want to use the userID value with GetUserProfileByIndex. Alternatively, call $().SPServices.SPGetCurrentUser to get the field(s) you need.
Finally, if you are in SharePoint 2013+, use a REST call instead.