Forum Discussion
API to Azure Purview
- 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'.
GuillaumeBerthier I followed all the steps in the document you shared https://piethein.medium.com/use-azure-purviews-rest-apis-for-creating-custom-lineage-ad8efacc6230#406b
After creating token, I tried validating Atlas endpoint where I am failing to do so. I executed the CURL command on my postman. I am getting the below response -
{"error":{"code":"Unauthorized","message":"Not authorized to access account"}}
What permission I might be missing out?
You response will be much appreciated.
Thanks.
Regards,
Khushboo Mehta
- drewbiosAug 19, 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...