2

I am having user id of SharePoint Online user. Now I need to fetch the Delve profile url for this user.

How can I fetch the Delve URL of user by User ID?

I have gone through this. This does not provided delve URL when I tried.

Please suggest.

3

To get the delve url of current user, you can hit below url:

https://tenantname-my.sharepoint.com/_layouts/15/me.aspx?v=profile

If you want the delve url of another user, you can hit below url:

https://tenantname-my.sharepoint.com/_layouts/15/me.aspx/?p=user.name%40tenantname.com&v=work

So, if a user's name is say, Gautam Sheth and he has valid email address like

gautam.sheth@abc.com or gautam.sheth@tenantname.onmicrosoft.com, then url be like:

https://tenantname-my.sharepoint.com/_layouts/15/me.aspx/?p=gautam.sheth%40abc.com&v=work

or

https://tenantname-my.sharepoint.com/_layouts/15/me.aspx/?p=gautam.sheth%40tenantname.onmicrosoft.com&v=work

  • I agree... Thanks for the answer. What I am having is userid and if I want to fetch the delve url using REST API, then in that case is it possible to get the delve url using rest api? – Trimantra Software Solution May 8 '17 at 4:47
  • I don't think that would be possible. Assuming that you are using _spPageContextInfo.userId, the value would be different in different site collections. However, you can use _spPageContextInfo.userEmail to get the email address. – Gautam Sheth May 8 '17 at 8:31
0

I was able to do this using following url:

SiteUrl/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='i:0%23.f|membership|user@siteurl.onmicrosoft.com'

Using this URL in REST API will give you all properties.

Found reference here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.