azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Azure Python SDK for ClassicAdministrator role

Open spoloj opened this issue 7 years ago • 10 comments

Requesting for python SDK to list classicAdministrator/ServiceAdministrator role assignment for list of subscriptions. In this package azure.mgmt.authorization.v2015_06_01 there is a classicadminitrator operation but I was unable to use the filter to list for all the subscriptions which I have access to. And also didn't find any particular operation related to this in later released packages.

Please let me know if I missed to check any further operations or packages related to this.

spoloj avatar Dec 18 '18 00:12 spoloj

@yugangw-msft could you give some explainations that I could translate in SDK language? Thanks!

lmazuel avatar Dec 18 '18 01:12 lmazuel

This API returns co-admins which have the highest privileges on the subscription. For context, co-admins are from old ASM world, but for compatibility ARM provision them in the AAD graph and maintain the accesses through giving out the owner role. It is not specific to the current users. Let me know in case I have not quite understood your goals.

yugangw-msft avatar Dec 18 '18 18:12 yugangw-msft

Hi @yugangw-msft , we have a use case in our governance project where we need to get the data of classicAdministrators. Currently we are using this API https://docs.microsoft.com/en-us/rest/api/authorization/classicadministrators/list but this is not so feasible as It is hard to filter out just active subscriptions and our automation scripts are breaking because of deleted subscriptions. Can we please get a python SDK for this ?

spoloj avatar Jan 07 '19 15:01 spoloj

To filter for active subscriptions, you probably should go with azure-mgmt-resource and use the subscription client to find the accurate list. Check out the code here

yugangw-msft avatar Jan 11 '19 01:01 yugangw-msft

How to check the list of roles assigned to the user logged in with?

uday1kiran avatar Sep 15 '20 18:09 uday1kiran

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @darshanhs90, @AshishGargMicrosoft.

Issue Details

Requesting for python SDK to list classicAdministrator/ServiceAdministrator role assignment for list of subscriptions. In this package azure.mgmt.authorization.v2015_06_01 there is a classicadminitrator operation but I was unable to use the filter to list for all the subscriptions which I have access to. And also didn't find any particular operation related to this in later released packages.

Please let me know if I missed to check any further operations or packages related to this.

Author: spoloj
Assignees: -
Labels:

Authorization, Docs, Mgmt, Resource Authorization, Service Attention

Milestone: -

ghost avatar Dec 30 '20 23:12 ghost

latest azure-mgmt-authorization is 2.0.0. Does it work for you?

xiangyan99 avatar Dec 07 '21 23:12 xiangyan99

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

ghost avatar Dec 15 '21 02:12 ghost

Hi @spoloj. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

ghost avatar Dec 15 '21 08:12 ghost

Hi @spoloj, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.

ghost avatar Dec 22 '21 16:12 ghost