Forum Discussion

MaxGolov's avatar
MaxGolov
Copper Contributor
Jun 05, 2020

Create a dynamic link (based on user) to a specific OneDrive for Business folder

I'm looking for a way to create a link that would take each user to their respective OneDrive for Business folder. All users will have the same folder, the only variable is the account name. I want to use this link on a the homepage of my SPO site.

The broader use case is to enable users to cherry pick documents from multiple libraries documents on the site and copy them to their own private space. Each person chooses documents they see most useful. And these documents must be synced with my SPO site. I was thinking of using "Create shortcut" functionality or SPO workflows so users can populate their libraries, but I'm stuck on creating a link that everybody can use in the navigation bar to get to their libraries.

Would appreciate any help

  • ASingleton's avatar
    ASingleton
    Copper Contributor

    MaxGolov did you figure out a workaround for this? Currently dealing with a similar issue where we're hosting content on onedrive and the programs we're using saves a link to said content. However the link is unique to each user, so when switching files between users, the link is "lost" and needs to be repathed to the current users Onedrive location. The only solution i thought of would be to move where the local onedrive documents are stored from inside the specific windows users folder to a universal location.

  • Lewis-H's avatar
    Lewis-H
    Iron Contributor
    Find the user. Select user and click edit. You will be able to add another users to security group of main user. Log in as the other user and BAM, you will be able to sync their entire OneDrive content.
  • Vikram_Samal's avatar
    Vikram_Samal
    Steel Contributor

    MaxGolovExcuse me if I could not understand your question. But if you want a link in some common page or app which takes them to their respective one-drive location then you can use something like this and redirection will happen automatically to their respective space.

     

    The url will be:

    https://youtenant-my.sharepoint.com/_layouts/15/MySite.aspx?MySiteRedirect=AllDocuments

     

    Replace with you tenant details as it appears when accessing the one drive.

     

    Thanks,
    Vik
    If this post helps, then please consider giving a like and Accept it as the solution to help the other members find it more quickly.

     

Resources