Forum Discussion
MWLjdb
Nov 10, 2021Brass Contributor
API to Azure Purview
I can successfully generate the bearer token via API to our purview instance, but any time I try any other API call, I get the following. This includes using the "Try it" button from the API documen...
- Aug 18, 2022Difference for me using Piethein's excellent instructions was the change of resource from 'https://management.core.windows.net/' (getting that "Invalid token audience" error) to 'https://purview.azure.net'.
drewbios
Aug 18, 2022Copper Contributor
Difference for me using Piethein's excellent instructions was the change of resource from 'https://management.core.windows.net/' (getting that "Invalid token audience" error) to 'https://purview.azure.net'.
drewbios
Aug 18, 2022Copper Contributor
After assigning the recommended roles (Data Curator, Data Source Administrator, Collection Admin - I also added Data Reader) to the service principal, I get different errors using the different configurations.
- Using the token with resource = 'https://management.core.windows.net/', the error is Unauthenticated, "Invalid token audience provided..."
- Using the token with resource = 'https://purview.azure.net' (as suggested by Piethein), the error is Unauthorized, "Not authorized to access account".
So similar behaviour to other posters...