Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get user by any profile value? #65

Open
mushieslushie opened this issue Sep 18, 2017 · 1 comment
Open

Get user by any profile value? #65

mushieslushie opened this issue Sep 18, 2017 · 1 comment

Comments

@mushieslushie
Copy link

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.

@sympmarc
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants