简体   繁体   中英

How to use REST API to extract role assignment information from a Azure Purview account?

I want to obtain role assignment information from Azure Purview instances using REST API calls in my application. The desired information is the email addresses and groups under each role as indicated by the red arrows in the image at the end.

I have tried to follow the Microsoft doc ( link ) and tried the API below.

GET {Endpoint}/policyStore/metadataRoles?api-version=2021-07-01-preview

However, I could only get the default metadata roles in the response, such as

purviewmetadatarole_builtin_data-source-administrator

I am new to Purview, so please forgive me if this is a silly question. Is there an API that can properly extract role assignment information?

Image - Role assignment information is indicated by red arrows

Metadata Roles – List REST API returns the list roles for Azure Purview Account.

在此处输入图像描述

Metadata Policy - List All REST API returns the list or Get metadata polices for Azure Purview Account.

在此处输入图像描述

Note: This attribute Value will be Object ID of the user/app registered in the Azure Active Directory.

在此处输入图像描述

Metadata Policy - Get REST API returns Gets a metadata policy for Azure Purview Account.

Note: Make sure to replace the {policyId} with the above value.

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM