Hello @Khushboo ,
Thanks for the question and using MS Q&A platform.
For accounts created on or after 8/18, we need to assign the service principal Purview Data Curator role at collection level and not in Azure Portal for these APIs to work. For more information, please refer to this doc: Create and manage collections in Microsoft Purview
You will have to assign the following roles to the service principal to access various data planes in Microsoft Purview.
- Data Curator role to access Catalog Data plane.
- Data Source Administrator role to access Scanning Data plane.
- Collection Admin role to access Account Data Plane and Metadata policy Data Plane.
NOTE: Please note that only members of the Collection Admin role can assign data plane roles in Microsoft Purview.
To explore about the Access control in the Microsoft Purview Data Map please refer to this doc: Microsoft Purview - Who should be assigned to what role?
Below is an important note from product team when you use existing service principals for calling Azure Purview REST APIs
I would also recommend going through this helpful doc for using Purview REST APIs: Tutorial: Use the REST APIs
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators