Purview and REST API: Not able to assign roles to the deployed child collection in purview account using REST API

Sugunakar 1 Reputation point
2022-08-25T23:44:41.307+00:00

I am trying to create automation module using Purview data plane REST API to deploy purview collection (not the root collection) and assign Purview roles at this collection level. I am using purview data plane REST API.
I looked at the REST catalog for collections and couldn’t find any API for roles assignments at collection level.
Through the code I can provision the purview collection but unable to assign permission/roles.
Can you recommend a solution?

Microsoft Purview
Microsoft Purview
A Microsoft data governance service that helps manage and govern on-premises, multicloud, and software-as-a-service data. Previously known as Azure Purview.
1,045 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 84,936 Reputation points Microsoft Employee
    2022-08-26T05:01:45.46+00:00

    Hello @Sugunakar ,

    Welcome to the Microsoft Q&A platform.

    Yes, there are MetadataPolicy APIs which are well documented - https://learn.microsoft.com/en-us/rest/api/purview/metadatapolicydataplane/metadata-policy

    You can use the update metadatapolicy APIs /policyStore/metadataPolicies/{policyId}?api-version=2021-07-01-preview.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is howd
    • 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