Skip to content Skip to sidebar Skip to footer

Invalid Audience Uri Error Service To Service Application, Onedrive For Business

I am attempting to retrieve files from an Office 365 for Business account. Following instructions here: https://msdn.microsoft.com/en-us/library/azure/dn645543.aspx I have been ab

Solution 1:

I Had the same issue.

I use OneDrive for business API (and not office 365 management API) to download\upload files, This means the resource parameter you provide while retrieving access token should be:

https://[tenant redacted]-my.sharepoint.com

Please try to open the access token (which is in JWT format) with a JWT decoder, to verify the audience (I used online JWT decoder to do so, the parameter you look in the under payload is aud) is what you are expecting.

Post a Comment for "Invalid Audience Uri Error Service To Service Application, Onedrive For Business"