Share via


Configure links to OneDrive for Business in Office 365 (SharePoint Server 2010)

 

Applies to: SharePoint Online, SharePoint Server 2010

You can configure your SharePoint Server 2010 sites to display a link to the user’s OneDrive for Business in Office 365. This gives your users the convenience of reaching their OneDrive for Business from anywhere in SharePoint Server 2010. Additionally, users can access their files from anywhere there's an Internet connection, and can access these files on devices such as iPhones, Windows Phones, tablets, and so on.

The OneDrive for Business link appears as a button in the upper right of webpages on your SharePoint farm:

Screenshot of OneDrive button on SharePoint Server 2010 web site

Prerequisites

To set up OneDrive for Business links in your SharePoint sites, you need the following before you begin:

While not required, we highly recommend an identity management solution between your on-premises Active Directory Domain Services and Office 365. This can be Directory Sync with Password Synchronization or Directory Sync plus AD FS.

Find your My Site URL in Office 365

When you configure the OneDrive for Business link, you need to know the URL for your My Sites site collection in Office 365. To find the My Sites URL, in the Office 365 admin center, click SharePoint. In the site collections list, look for the site collection that contains <domain>-my.sharepoint.com.

Screenshot of MySite URL in SharePoint Online

Create an audience (if necessary)

If you want have OneDrive for Business links for only a specific set of your users, you need to use an audience to identify that set of users. If you have an audience set up already that contains just those users, you can use that. Otherwise, you need to configure that audience.

If you want all users to have OneDrive for Business links, select Everyone instead of using a specific audience when you configure the settings.

Configure settings in Central Administration

Now you can configure the settings in Central Administration to set up the redirection to Office 365.

To configure OneDrive for Business links

  1. Verify that the user account that is performing this procedure is a member of the Farm Administrators group.

  2. On the Central Administration website, choose Office 365 > Configure OneDrive for Business links.

  3. On the Configure OneDrive for Business links page, in the My Site URL box, type the My Site URL that you got from Office 365 administration.

  4. Specify an audience. Choose Everyone if you want all users to be redirected. Or choose Use a specific audience and type the audience name for the audience that contains your Office 365 users.

  5. Choose OK.

If in the future you want to disable OneDrive for Business links, follow this procedure again and simply delete the My Site URL.

Working with customized SharePoint pages

If you've customized your SharePoint pages, it's possible that the OneDrive for Business links won't show up as expected. If that happens, you can edit the page and position the link using the following JavaScript code.

if (HybridPersonalSiteUrl_CreateButton) {
     var button = HybridPersonalSiteUrl_CreateButton();
     container.appendChild(button);
}

Container, in this case, is the page element to which you want to add the OneDrive for Business link. If you're using audiences, note that the CreateButton() function is only registered for members of the audience that you're using with OneDrive for Business.

See Also

Other Resources

OneDrive for Business