My objective is to create a hyperlink that can function on various devices, not just my own. Here’s an example of a hyperlink that works for me:


Nonetheless, the hyperlink won’t operate for individuals utilizing a computer that lacks a user account with the name “bob.”

Is there a method to substitute the username with the presently logged-in user? Here’s an instance:


I discovered the %USERPROFILE% option, but it doesn’t function as a solution.

To provide some context, our SharePoint 365 is available to everyone, and I want to generate hyperlinks to folders within the SharePoint that they have permission to access. These hyperlinks would open the file or file explorer. Currently, we have to create a share link that opens the file in a browser, which isn’t the ideal solution.

Askify Moderator Edited question May 3, 2023