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.
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.
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
[email protected]
or [email protected]
, 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
_spPageContextInfo.userId
, the value would be different in different site collections. However, you can use _spPageContextInfo.userEmail
to get the email address.
Commented
May 8, 2017 at 8:31
I was able to do this using following url:
SiteUrl/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='i:0%23.f|membership|[email protected]'
Using this URL in REST API will give you all properties.
Found reference here
As of late 2021, I had success with the method described in this excellent article: https://tahoeninjas.blog/2019/08/19/create-a-link-to-a-delve-profile/
He even has a little fill-in form generator for the URL!
For posterity, though:
To create a link to someone’s Delve profile:
Take your tenant name, and add: -my.sharepoint.com/PersonImmersive.aspx?accountname=i%3A0%23%2Ef%7Cmembership%7C to the end of it.
Append the person’s email address at the end of what you got in step 1.
(credit to Hergo Bernier, the Tahoe Ninja).