Hello, nice to ask again. I have the following issue: I need to create a new bucket to manage log retention. To do this, I followed the guide, but I’m encountering issues with OAuth 2.0 permissions. I’m searching within the Dynatrace API Swagger for the required permissions. Can you help me identify the necessary permissions?"
I create the OAuth with the permissions specified by OAuth 2.0, and I generate the token from Postman. However, upon execution, I still lack the necessary permissions. What could be the issue?
Furthermore, I created the precise permissions and generated another OAuth with all the storage permissions. I created tokens with both OAuths and tested them separately, but with the same result.
Hello @Ellery The permission not met means that the user executing the API call needs to have the policy assigned with at least the storage:bucket-definitions permissions:
First of all, thank you very much for the response, but it seems that there’s something I’m doing wrong, as even though the API responds, it is not the expected result from the API.
At this point, if you are receiving Required permissions not met it means that the Oauth 2.0 Token is working, but you are lacking the Dynatrace identity and access management (IAM) framework permissions on the user you assign the Oauth 2.0 Token.
Open the User menu and select Account settings (in latest Dynatrace, Account Management).
On the top navigation bar, go to Identity & access management > Policies.
Select Create policy, and set a name.
Write the policy statements as seen in the image. Note that for bucket management you only need the storage:bucket-definitions statements (8,9,10,11). But this policy is intended to be used by an Admin so it’s a bit more permissive.
Open the User menu and select Account settings (in latest Dynatrace, Account Management).
On the top navigation bar, go to Identity & access management > Groups.
Select Create group, and set a name.
Under the Policies section click edit and assign the Policy Storage - Admin you created on the previous section Create Grail Storage Admin Policy.
Save it and we are ready with the group and policy assignment.
4. Assign Storage Manager Group to your Grail Admin User.
Open the User menu and select Account settings (in latest Dynatrace, Account Management).
On the top navigation bar, go to Identity & access management > People.
Search for the same user to which you assign the Oauth 2.0 Token.
Edit the user and assign the Storage Manager Group you created in the previous step Create Storage Manager Group.