I have seen a lot of StackOverflow posts trying to debug pretty basic errors when getting an access token to Microsoft Resources. Sometimes the issue is as simple as a typo in the “resource” value in the token request. When helping these users, I struggle to find public documentation which shows plainly the correct resource values for these different APIs!
That is going to change starting now. Here will be a list of the most popular Microsoft APIs exposed on Azure Active Directory, along with the basic information you may need to get an access token to those resources for PROD. (If you want the details for other Environments, let me know!)
Note: The Resource URI must match exactly what is written below, including any trailing ‘/’ or lack thereof.
|Resource Name||Resource URI||Application ID|
|AAD Graph API||https://graph.windows.net/||00000002-0000-0000-c000-000000000000|
|Office 365 Exchange Online||https://outlook-sdf.office.com/||00000002-0000-0ff1-ce00-000000000000|
|Skype for Business Online||https://api.skypeforbusiness.com/||00000004-0000-0ff1-ce00-000000000000|
|Office 365 Yammer||https://api.yammer.com/||00000005-0000-0ff1-ce00-000000000000|
|Windows Azure Service Management API||https://management.core.windows.net/||797f4846-ba00-4fd7-ba43-dac1f8f63013|
|Office 365 Management APIs||https://manage.office.com||c5393580-f805-4401-95e8-94b7a6ef2fc2|
|Microsoft Teams Services||https://api.spaces.skype.com/||cc15fd57-2c6c-4117-a88c-83b1d56b4bbe|
|Azure Key Vault||https://vault.azure.net||cfa8b339-82a2-471a-a3c9-0fc0be7a4093|
Who knows if this will actually end up helping anyone, but I hope it will!