To list containers in my storage account, I used Postman Rest API by generating tokens using this endpoint:
POST: https://login.microsoftonline.com/tenantID/oauth2/token
&client_id = redacted
&grant_type = client_credentials
&resource = https://storage.azure.com
&client_secret = redacted
With this token I queried the list of containers like this:
GET https://storageaccname.blob.core.windows.net/?comp=list
Authorization : Bearer redacted
x-ms-version : 2017-11-09
But I got stuck at this error, I tried many ways to get rid of it no use :(
<?xml version="1.0" encoding="utf-8"?>
<Error>
<Code>AuthorizationPermissionMismatch</Code>
<Message>This request is not authorized to perform this operation using this permission.
RequestId:
Time:2022-08-15T08:12:24.9827677Z</Message>
</Error>
I tried assigning API permissions to Azure storage and did the same process but still same error.