简体   繁体   中英

Azure Api Management restrict users from operational level

I am having an api with suppose 100 operations. I have created developer portal. my requirement is out of 100 operations, user A can only view the GET operations and User B can only view PUT and POST operations in developer portal once they logged in.

I am using username and password identity.

Kindly help on this. I have tried policies but not helping.

You can't do that on the managed portal because the narrower subscription level(scope) is the API/User level. You can self host the portal and achieve what you want but that will require considerable amount of work from your end.

在此处输入图像描述

Indeed this cannot be done just like that from the portal.

What you could do is setup the API in API Management twice. Once only with the GET operations and once with the POST operations. You would have two different API's to which you can grant access.

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