Skip to content

Commit c28e642

Browse files
Merge pull request SharePoint#6484 from andrewconnell/docfix6456
fixup broken link
2 parents b19d912 + 8b63138 commit c28e642

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

docs/solution-guidance/multigeo-onedrive.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ You can use one of several APIs to access a OneDrive for Business site:
1515
- SharePoint CSOM API
1616
- SharePoint REST API
1717

18-
1918
## Read OneDrive for Business files using Microsoft Graph
2019

21-
When you use Microsoft Graph to read a OneDrive for Business file, you don't have to know where a user's OneDrive site is located. When you request the drive, as shown in the following examples, you'll get the files you need.
20+
When you use Microsoft Graph to read a OneDrive for Business file, you don't have to know where a user's OneDrive site is located. When you request the drive, as shown in the following examples, you'll get the files you need.
2221

2322
```
2423
GET https://graph.microsoft.com/v1.0/users/[email protected]/drive/root/children
@@ -48,8 +47,8 @@ GET https://graph.microsoft.com/v1.0/me/mySite
4847
"value": "https://contoso-my.sharepoint.com/personal/admin_contoso_onmicrosoft_com/"
4948
}
5049
```
51-
For more information, see the [MultiGeo.UserProfileUpdates](https://github.com/SharePoint/PnP/tree/master/Samples/MultiGeo.UserProfileUpdates) sample.
5250

51+
For more information, see the [MultiGeo.UserProfileUpdates](https://github.com/pnp/PnP/tree/master/Samples/MultiGeo.UserProfileUpdates) sample.
5352

5453
## Get the ___location of a user's OneDrive for Business site using CSOM and REST
5554

@@ -74,24 +73,21 @@ If you're using C#, you can use CSOM to get the ___location of a OneDrive for Busin
7473
```csharp
7574
public string GetUserPersonalUrlCSOM(ClientContext ctx, string userPrincipalName)
7675
{
77-
string result = null;
76+
string result = null;
7877

79-
PeopleManager peopleManager = new PeopleManager(ctx);
80-
var userProperties = peopleManager.GetPropertiesFor(userPrincipalName);
81-
this.clientContext.ExecuteQuery();
82-
result = userProperties.PersonalUrl;
78+
PeopleManager peopleManager = new PeopleManager(ctx);
79+
var userProperties = peopleManager.GetPropertiesFor(userPrincipalName);
80+
this.clientContext.ExecuteQuery();
81+
result = userProperties.PersonalUrl;
8382

84-
return result;
83+
return result;
8584
}
8685
```
8786

88-
89-
9087
## See also
9188

9289
- [Working with files in Microsoft Graph](https://docs.microsoft.com/graph/api/resources/onedrive?view=graph-rest-1.0)
9390
- [Uploading files using REST](https://github.com/SharePoint/PnP/tree/master/Samples/Core.RestFileUpload)
9491
- [File upload CSOM SharePoint Add-in](https://github.com/SharePoint/PnP/tree/master/Samples/Core.FileUpload)
9592
- [Large file upload with CSOM](https://github.com/SharePoint/PnP/tree/master/Samples/Core.LargeFileUpload)
9693
- [OneDrive and SharePoint Online Multi-Geo](multigeo-introduction.md)
97-

0 commit comments

Comments
 (0)