<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PostMan and OAuth 2.0 in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229726#M2783</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/65321"&gt;@Ellery&lt;/a&gt; I'm going to try to help you with a very detailed guide.&lt;/P&gt;&lt;H2&gt;1. Troubleshooting Grail IAM Permissions.&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_0-1700695087937.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15796iC7596A1BECE6BE66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_0-1700695087937.png" alt="DanielS_0-1700695087937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;At this point, if you are receiving &lt;EM&gt;Required permissions not met&lt;/EM&gt; it means that the Oauth&amp;nbsp; 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.&lt;/P&gt;&lt;H2&gt;2. Create Grail Storage Admin Policy.&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_1-1700695712062.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15797i49DD6A98E1288D8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_1-1700695712062.png" alt="DanielS_1-1700695712062.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the User menu and select Account settings (in latest Dynatrace, Account Management).&lt;BR /&gt;On the top navigation bar, go to Identity &amp;amp; access management &amp;gt; Policies.&lt;/LI&gt;&lt;LI&gt;Select Create policy, and set a name.&lt;/LI&gt;&lt;LI&gt;Write the policy statements as seen in the image. Note that for bucket management you only need the &lt;STRONG&gt;storage:bucket-definitions&lt;/STRONG&gt; statements (8,9,10,11). But this policy is intended to be used by an Admin so it's a bit more permissive.&lt;/LI&gt;&lt;LI&gt;Save it and you are ready with the policy.&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;3. Create Storage Manager Group.&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_2-1700696776667.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15798i324E11325DD84B49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_2-1700696776667.png" alt="DanielS_2-1700696776667.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the User menu and select Account settings (in latest Dynatrace, Account Management).&lt;BR /&gt;On the top navigation bar, go to Identity &amp;amp; access management &amp;gt; Groups.&lt;/LI&gt;&lt;LI&gt;Select Create group, and set a name.&lt;/LI&gt;&lt;LI&gt;Under the Policies section click edit and assign the Policy &lt;STRONG&gt;Storage - Admin&lt;/STRONG&gt; you created on the previous section &lt;STRONG&gt;Create Grail Storage Admin Policy&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Save it and we are ready with the group and policy assignment.&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;4. Assign Storage Manager Group to your Grail Admin User.&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_3-1700696984127.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15799i3004494266A0D991/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_3-1700696984127.png" alt="DanielS_3-1700696984127.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the User menu and select Account settings (in latest Dynatrace, Account Management).&lt;BR /&gt;On the top navigation bar, go to Identity &amp;amp; access management &amp;gt; People.&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_6-1700697149006.png" style="width: 20px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15803iFE34FC6E2FCAD457/image-dimensions/20x20?v=v2" width="20" height="20" role="button" title="DanielS_6-1700697149006.png" alt="DanielS_6-1700697149006.png" /&gt;&lt;/span&gt;&lt;STRONG&gt;Search for the same user to which you assign the Oauth 2.0 Token.&lt;/STRONG&gt; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_6-1700697149006.png" style="width: 20px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15803iFE34FC6E2FCAD457/image-dimensions/20x20?v=v2" width="20" height="20" role="button" title="DanielS_6-1700697149006.png" alt="DanielS_6-1700697149006.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Edit the user and assign the &lt;STRONG&gt;Storage Manager Group &lt;/STRONG&gt;you created in the previous step &lt;STRONG&gt;Create Storage Manager Group&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;All set.&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;5. Ready to invoke the API call.&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_8-1700697413508.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15804i21027D5A97EB9E4E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_8-1700697413508.png" alt="DanielS_8-1700697413508.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go back to Postman and invoke the API call. You should now get Code 200 and a response like the image.&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Thu, 23 Nov 2023 00:23:16 GMT</pubDate>
    <dc:creator>DanielS</dc:creator>
    <dc:date>2023-11-23T00:23:16Z</dc:date>
    <item>
      <title>PostMan and OAuth 2.0</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229586#M2779</link>
      <description>&lt;P&gt;&lt;SPAN&gt;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?"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ellery_0-1700604094278.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15753i2EFD4696D41BDEC0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ellery_0-1700604094278.png" alt="Ellery_0-1700604094278.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;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?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ellery_1-1700604283867.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15754i3C7E443C88B26D93/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ellery_1-1700604283867.png" alt="Ellery_1-1700604283867.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ellery_2-1700604474782.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15755i8266348450CA7DD6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ellery_2-1700604474782.png" alt="Ellery_2-1700604474782.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The token is successfully created, but upon executing the query, it still complains about a lack of permissions. Am I missing any other permission?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 09:51:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229586#M2779</guid>
      <dc:creator>Ellery</dc:creator>
      <dc:date>2023-11-22T09:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: PostMan and OAuth 2.0</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229593#M2780</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/65321"&gt;@Ellery&lt;/a&gt; The &lt;EM&gt;permission not met&lt;/EM&gt; means that the user executing the API call needs to have the policy assigned with at least the storage:bucket-definitions permissions:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ALLOW storage:events:read;
ALLOW storage:metrics:read;
ALLOW storage:logs:read;
ALLOW storage:entities:read;
ALLOW storage:bizevents:read;
ALLOW storage:system:read;
ALLOW storage:buckets:read;
ALLOW storage:bucket-definitions:read;
ALLOW storage:bucket-definitions:write;
ALLOW storage:bucket-definitions:delete;
ALLOW storage:bucket-definitions:truncate;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I leave you a wide policy to apply to a "Storage Admin Group" to have full control over grail buckets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 22:42:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229593#M2780</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2023-11-21T22:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: PostMan and OAuth 2.0</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229594#M2781</link>
      <description>&lt;P&gt;I also leave you the link to this &lt;A href="https://community.dynatrace.com/t5/Dynatrace-tips/PRO-TIP-Dynatrace-Grail-Storage-Management-API-Postman/td-p/228831" target="_self"&gt;PRO TIP.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Maybe it will be useful to you.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 22:52:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229594#M2781</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2023-11-21T22:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: PostMan and OAuth 2.0</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229670#M2782</link>
      <description>&lt;P&gt;&lt;SPAN&gt;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.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ellery_1-1700658189758.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15784i44D32548C7BF605A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ellery_1-1700658189758.png" alt="Ellery_1-1700658189758.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 13:03:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229670#M2782</guid>
      <dc:creator>Ellery</dc:creator>
      <dc:date>2023-11-22T13:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: PostMan and OAuth 2.0</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229726#M2783</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/65321"&gt;@Ellery&lt;/a&gt; I'm going to try to help you with a very detailed guide.&lt;/P&gt;&lt;H2&gt;1. Troubleshooting Grail IAM Permissions.&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_0-1700695087937.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15796iC7596A1BECE6BE66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_0-1700695087937.png" alt="DanielS_0-1700695087937.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;At this point, if you are receiving &lt;EM&gt;Required permissions not met&lt;/EM&gt; it means that the Oauth&amp;nbsp; 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.&lt;/P&gt;&lt;H2&gt;2. Create Grail Storage Admin Policy.&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_1-1700695712062.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15797i49DD6A98E1288D8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_1-1700695712062.png" alt="DanielS_1-1700695712062.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the User menu and select Account settings (in latest Dynatrace, Account Management).&lt;BR /&gt;On the top navigation bar, go to Identity &amp;amp; access management &amp;gt; Policies.&lt;/LI&gt;&lt;LI&gt;Select Create policy, and set a name.&lt;/LI&gt;&lt;LI&gt;Write the policy statements as seen in the image. Note that for bucket management you only need the &lt;STRONG&gt;storage:bucket-definitions&lt;/STRONG&gt; statements (8,9,10,11). But this policy is intended to be used by an Admin so it's a bit more permissive.&lt;/LI&gt;&lt;LI&gt;Save it and you are ready with the policy.&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;3. Create Storage Manager Group.&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_2-1700696776667.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15798i324E11325DD84B49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_2-1700696776667.png" alt="DanielS_2-1700696776667.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the User menu and select Account settings (in latest Dynatrace, Account Management).&lt;BR /&gt;On the top navigation bar, go to Identity &amp;amp; access management &amp;gt; Groups.&lt;/LI&gt;&lt;LI&gt;Select Create group, and set a name.&lt;/LI&gt;&lt;LI&gt;Under the Policies section click edit and assign the Policy &lt;STRONG&gt;Storage - Admin&lt;/STRONG&gt; you created on the previous section &lt;STRONG&gt;Create Grail Storage Admin Policy&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;Save it and we are ready with the group and policy assignment.&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;4. Assign Storage Manager Group to your Grail Admin User.&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_3-1700696984127.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15799i3004494266A0D991/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_3-1700696984127.png" alt="DanielS_3-1700696984127.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open the User menu and select Account settings (in latest Dynatrace, Account Management).&lt;BR /&gt;On the top navigation bar, go to Identity &amp;amp; access management &amp;gt; People.&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_6-1700697149006.png" style="width: 20px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15803iFE34FC6E2FCAD457/image-dimensions/20x20?v=v2" width="20" height="20" role="button" title="DanielS_6-1700697149006.png" alt="DanielS_6-1700697149006.png" /&gt;&lt;/span&gt;&lt;STRONG&gt;Search for the same user to which you assign the Oauth 2.0 Token.&lt;/STRONG&gt; &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_6-1700697149006.png" style="width: 20px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15803iFE34FC6E2FCAD457/image-dimensions/20x20?v=v2" width="20" height="20" role="button" title="DanielS_6-1700697149006.png" alt="DanielS_6-1700697149006.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;Edit the user and assign the &lt;STRONG&gt;Storage Manager Group &lt;/STRONG&gt;you created in the previous step &lt;STRONG&gt;Create Storage Manager Group&lt;/STRONG&gt;.&lt;/LI&gt;&lt;LI&gt;All set.&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;5. Ready to invoke the API call.&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DanielS_8-1700697413508.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15804i21027D5A97EB9E4E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="DanielS_8-1700697413508.png" alt="DanielS_8-1700697413508.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go back to Postman and invoke the API call. You should now get Code 200 and a response like the image.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 23 Nov 2023 00:23:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229726#M2783</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2023-11-23T00:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: PostMan and OAuth 2.0</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229727#M2784</link>
      <description>&lt;P&gt;Also I've updated the guide to reflect a way to troubleshoot your problem. Because I saw other post with the problem. Thanks for your feedback.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 00:31:57 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/PostMan-and-OAuth-2-0/m-p/229727#M2784</guid>
      <dc:creator>DanielS</dc:creator>
      <dc:date>2023-11-23T00:31:57Z</dc:date>
    </item>
  </channel>
</rss>

