Skip to content

Commit 82742e6

Browse files
Merge pull request SharePoint#6466 from bcameron1231/patch-12
Adding example responses and Updating a broken link in documentation
2 parents 684b80d + 9d86fc9 commit 82742e6

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

docs/solution-guidance/multigeo-onedrive.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Access OneDrive for Business in a Multi-Geo tenant
33
description: Accessing a user's OneDrive for Business site, also known as a personal site or my site, is a common scenario in custom applications.
4-
ms.date: 6/18/2019
4+
ms.date: 11/18/2020
55
localization_priority: Normal
66
---
77

@@ -35,12 +35,21 @@ Reading files by using CSOM is identical to reading files on other site collecti
3535
The following examples show how to get the ___location of a OneDrive for Business site by using the Microsoft Graph API.
3636

3737
```
38-
GET https://graph.microsoft.com/v1.0/users/admin@a830edad9050849524e17052212.onmicrosoft.com/mySite
38+
GET https://graph.microsoft.com/v1.0/users/admin@contoso.onmicrosoft.com/mySite
3939
40-
GET https://graph.microsoft.com/v1.0/users/me/mySite
40+
GET https://graph.microsoft.com/v1.0/me/mySite
4141
```
4242

43-
For more information, see the [MultiGeo.UserProfileUpdates](https://github.com/SharePoint/PnP/tree/dev/Samples/MultiGeo.UserProfileUpdates) sample.
43+
#### Example response for a ___location of user's OneDrive for Business site using Microsoft Graph
44+
45+
```json
46+
{
47+
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('[email protected]')/mySite",
48+
"value": "https://contoso-my.sharepoint.com/personal/admin_contoso_onmicrosoft_com/"
49+
}
50+
```
51+
For more information, see the [MultiGeo.UserProfileUpdates](https://github.com/SharePoint/PnP/tree/master/Samples/MultiGeo.UserProfileUpdates) sample.
52+
4453

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

@@ -50,6 +59,16 @@ The following example shows a REST-based query to get the ___location of a OneDrive
5059
GET https://contoso.sharepoint.com/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)/PersonalUrl?%40v=%27i%3A0%23.f%7Cmembership%7Cbert%40contoso.onmicrosoft.com%27
5160
```
5261

62+
#### Example response for a ___location of user's OneDrive for Business site using REST
63+
64+
```json
65+
{
66+
"d":{
67+
"PersonalUrl":"https://contoso-my.sharepoint.com/personal/admin_contoso_onmicrosoft_com/"
68+
}
69+
}
70+
```
71+
5372
If you're using C#, you can use CSOM to get the ___location of a OneDrive for Business site.
5473

5574
```csharp

0 commit comments

Comments
 (0)