Location: Kirby Cane (9 / NR35 2PR)
+44 7787 872860
david@coderslament.uk

Forum

In the round trip of life knowledge and honesty gets you complete

Please or Register to create posts and topics.

Microsoft Graph / Code: UnknownError Message: Unable to retrieve user's mysite URL.

Dear Reader

  1. I have been working on a Microsoft graph problem for 3 days now. The above error is not well documented in the forums.
  2. 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.
  3. 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

David A Robertson, aka hkdave95 (Cheesy Chilli Chocci Dave) JADER Ltd

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

David A Robertson, aka hkdave95 (Cheesy Chilli Chocci Dave) JADER Ltd