Open seungyoon20-zz opened 5 years ago
Thank you for creating the issue! One of our team members will get back to you shortly with additional information. If this is a product issue, please close this and contact the particular product's support instead (see https://support.microsoft.com/allproducts for the list of support websites).
@rloutlaw can you please take a look at this issue?
Describe the bug I am looking at this page: https://docs.microsoft.com/en-us/rest/api/authorization/roleassignments/listforresource.
I notice that if i specifies the resource be a blob storage account, I get all the roleAssignments that inherited from upper level, roleAssignments at storage account level, and roleAssignments of lower level(roles that i assign to lower level blob containers).
But if I specifies the resource to be a container, I only get the roleAssignments at storage account and roles that storage accounts inherited. I could't get roles that I assign to the container.
I also tried to specify the resource to be a blob file under container, and I got same roles as I specified resource as container.
To Reproduce Steps to reproduce the behavior(I used Python requests to trigger the APIs):
resp = s.get("https://management.azure.com/subscriptions/<subscriptionID>/resourceGroups/<group-name>/providers/Microsoft.Storage/storageAccounts/<blobstorage>/blobServices/default/containers/<container>/blobs/<fileName>/providers/Microsoft.Authorization/roleAssignments?api-version=2019-04-01-preview")
Resource is a container:
resp = s.get("https://management.azure.com/subscriptions/<subscriptionID>/resourceGroups/<group-name>/providers/Microsoft.Storage/storageAccounts/<blobstorage>/blobServices/default/containers/<container>/providers/Microsoft.Authorization/roleAssignments?api-version=2019-04-01-preview")
Resource is a storage account:
resp = s.get("https://management.azure.com/subscriptions/<subscriptionID>/resourceGroups/<group-name>/providers/Microsoft.Storage/storageAccounts/<blobstorage>/providers/Microsoft.Authorization/roleAssignments?api-version=2019-04-01-preview")
Expected behavior I am not sure what I should expect from giving container or blob file as resource because the documentation didn't specifies, but i think definitely not the current behavior