sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Delve People Suggestions Api in custom implementation

Open jnimmala opened this issue 8 years ago • 4 comments

Category

  • [x] Question
  • [ ] Typo
  • [ ] Bug
  • [ ] Additional article idea

Expected or Desired Behavior

Observed Behavior

Hello - We are working on a requirement to add a people search with typeahead functionality on our sharepoint intranet home page (similar to people/document lookup on delve home page, but just people)

I see delve is using below end points for people suggestions: https://nam.delve.office.com/mt/v3/search/peoplesuggestions?queryText=&personType=Person https://nam.delve.office.com/mt/v3/search/people?queryText=jim&top=5

Can you please provide documentation on these end points ? Also, can we use these end points for our custom people lookup implementation.

Thank you !

jnimmala avatar Sep 06 '18 14:09 jnimmala

Hi @jashwanthreddyn

The users in the delve are actually are users in the tenant. You can use graph API to retrieve all users. https://graph.microsoft.com/v1.0/users/

If you want to check specific user's skill https://graph.microsoft.com/v1.0/users/{user_id}/skills

Here is the Microsoft graph API docs you can read, and all properties are list in the doc. https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/resources/user

KingKangMSFT avatar Sep 07 '18 05:09 KingKangMSFT

Thanks @KingKangMSFT

Yep, we do have that option. But looks like graph has security trimming ? Below is what I've been trying in graph explorer

https://graph.microsoft.com/v1.0/users?$filter=(givenName%20eq%20'jashwanthreddyn')&$select=displayName,givenName,jobTitle,businessPhones -> gives me my phone number (when I lookup for my profile)

https://graph.microsoft.com/v1.0/users?$filter=(givenName%20eq%20'jim')&$select=displayName,givenName,jobTitle,businessPhones -> when I lookup my colleague, 'businessPhones' is masked. I did checked AAD and there is valid phone number for this user in AAD.

And regarding delve, I think I got that. Users in delve are users in tenant. My questions is more around the implementation for people/document lookup on delve landing page. Can we mimic this implementation ?

Thanks again !

jnimmala avatar Sep 07 '18 13:09 jnimmala

You can mimic the implementation by using the Graph REST APIs, which is where the information is available. All information in the Graph APIs is automatically security trimmed.

VesaJuvonen avatar Oct 09 '18 16:10 VesaJuvonen

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 26 '20 18:01 msft-github-bot