question

PrempreechakunNattakan-9703 avatar image
0 Votes"
PrempreechakunNattakan-9703 asked ChetanSharmamsft-3456 commented

Can't get token resourceDisabled AADSTS500011

I'm developing app on MS Teams. I use MS Graph to get user's profile into my tabs app (React).
It's work when I develop in localhost and hitting F5 key in Visual Studio Code but
when I deploy my tabs app and upload manifest for testing, I can't get token and get data from MS Graph.
I error message was show in below figure. How to fix it?



158338-error-get-token.jpg


microsoft-authenticatoroffice-teams-app-devmicrosoft-graph-teamwork
error-get-token.jpg (252.7 KiB)
· 12
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.

@PrempreechakunNattakan-9703 - Looks like your configuration are wrong.
Could you please re verify your configuration & try it once.

0 Votes 0 ·

Could you explain more detail? Should I change the configuration in azure portal?

0 Votes 0 ·
ChetanSharmamsft-3456 avatar image ChetanSharmamsft-3456 PrempreechakunNattakan-9703 ·

Could you please check your tenant id configured in Azure bot in Azure Portal.
Also check it in your application settings.

0 Votes 0 ·
Show more comments

@PrempreechakunNattakan-9703
As stated in the error message, It can happen if the app is registered in the wrong tenant or the code for the apps do not have the right references to the app registration.

Could you please check if you have consented or provided correct admin permissions to your Graph API permissions in your App registration.

0 Votes 0 ·

@PrempreechakunNattakan-9703 - Could you please confirm if your issue has resolved with above suggestion or still looking for any help?

0 Votes 0 ·

I use admin account to create the app in Azure portal and the tenant id is correct but issue not resolved

0 Votes 0 ·
Show more comments

1 Answer

ChetanSharmamsft-3456 avatar image
0 Votes"
ChetanSharmamsft-3456 answered ChetanSharmamsft-3456 edited

As stated in the error message, It can happen if the app is registered in the wrong tenant or the code for the apps do not have the right references to the app registration.

Could you please check if you have consented or provided correct admin permissions to your Graph API permissions in your App registration.

Thanks,
Chetan Sharma


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.