Azure Python SDK for ClassicAdministrator role
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.
@yugangw-msft could you give some explainations that I could translate in SDK language? Thanks!
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.
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 ?
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
How to check the list of roles assigned to the user logged in with?
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: |
|
| Milestone: | - |
latest azure-mgmt-authorization is 2.0.0. Does it work for you?
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!
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.
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.