Forum breadcrumbs - You are here:Coders LamentProgramming / Coding (Compiled Languages): C#Microsoft Graph / Code: UnknownEr …
Microsoft Graph / Code: UnknownError Message: Unable to retrieve user's mysite URL.
#1 · 15/11/2020, 09:56
Quote from dar on 15/11/2020, 09:56Dear Reader
- I have been working on a Microsoft graph problem for 3 days now. The above error is not well documented in the forums.
- I cannot find where the mysite Url is set within Sharepoint or OneDrive in Microsoft 365. I am only assuming this is a setting within the admin area.
- I got past what I think was a permissions issue, which was related to adding the Sites.ReadWrite.All permission to the App I created.
I shall post more when I know more.
David
Dear Reader
- I have been working on a Microsoft graph problem for 3 days now. The above error is not well documented in the forums.
- I cannot find where the mysite Url is set within Sharepoint or OneDrive in Microsoft 365. I am only assuming this is a setting within the admin area.
- I got past what I think was a permissions issue, which was related to adding the Sites.ReadWrite.All permission to the App I created.
I shall post more when I know more.
David
Click for thumbs down.0Click for thumbs up.0
David A Robertson, aka hkdave95
(Cheesy Chilli Chocci Dave)
JADER Ltd
#2 · 15/11/2020, 16:02
Quote from dar on 15/11/2020, 16:02Dear Reader
Since my last post I have made progress.
The following code:
DriveItem loDriveItem = await loGraphServiceClient.Me...
I changed to:
DriveItem loDriveItem = await loGraphServiceClient.Users["{UserId}"]...Now I have got past this area.
The next problem is a permission issue which I am hoping I shall find the answer too soon.
KR
David
Dear Reader
Since my last post I have made progress.
The following code:
DriveItem loDriveItem = await loGraphServiceClient.Me...
I changed to:
DriveItem loDriveItem = await loGraphServiceClient.Users["{UserId}"]...
Now I have got past this area.
The next problem is a permission issue which I am hoping I shall find the answer too soon.
KR
David
Click for thumbs down.0Click for thumbs up.0
David A Robertson, aka hkdave95
(Cheesy Chilli Chocci Dave)
JADER Ltd