question

Ayami-7131 avatar image
0 Votes"
Ayami-7131 asked saldana-msft edited

MS Graph is Giving me the 'Getting Unable to retrieve user's mysite URL' and if I used Groups, Unable to provision resource.

I'm unable to used it, I don't know how, is this because of My account is for One Drive family?
do i need to get a One Drive for Business ?

My Issue is this one

184159-test2.jpg


this is for the groups for the users

184234-test.jpg


azure-webappssharepoint-devmicrosoft-graph-filesazure-webapps-developmentazure-webapps-authentication
test2.jpg (95.9 KiB)
test.jpg (84.3 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @Ayami-7131, can you decode your access token in JWT and provide a screenshot? I want to check if your access token is correct


0 Votes 0 ·
Ayami-7131 avatar image Ayami-7131 ZehuiYaoMSFT-7151 ·

184465-tests4.jpg

No problem

0 Votes 0 ·
tests4.jpg (64.7 KiB)
ZehuiYaoMSFT-7151 avatar image
1 Vote"
ZehuiYaoMSFT-7151 answered Ayami-7131 commented

Hello @Ayami-7131, According to my testing, when you request a group with a group type other than Microsoft 365, you will encounter the error 'unable to provision resource'
Here is the documentation for Group types in Azure AD and Microsoft Graph: https://docs.microsoft.com/en-us/graph/api/resources/groups-overview?view=graph-rest-1.0

185135-image.png



If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



image.png (142.4 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @Ayami-7131, does the answer above help you, comment here when you still need any help.

0 Votes 0 ·
Ayami-7131 avatar image Ayami-7131 ZehuiYaoMSFT-7151 ·

yeah, I have talked with the Microsoft Support,

it seems that using client credentials requires me to use, Business version over Family Version

the Family Version only allows Delegate Access

0 Votes 0 ·
SrinivasaRaoDarna-MSFT avatar image
1 Vote"
SrinivasaRaoDarna-MSFT answered

Hi @Ayami-7131,

From screenshots you are using App Authentication(Client Credential flow).

  • Check if the user is enabled with valid license

  • If user has a license to use OneDrive, is not provisioned

  • If a user's OneDrive is not provisioned but the user has a license to use OneDrive, this request will automatically provision the user's drive, when using delegated authentication

References: get-a-users-onedrive

Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.