<?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 oAuth 2.0 automate token generation in Postman in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/oAuth-2-0-automate-token-generation-in-Postman/m-p/261675#M1489</link>
    <description>&lt;P&gt;It's simple and efficient trick to leverage Postman scripting features to get automate access tokens generation process to gain faster implementation than creating new one each 5 minutes as it's a limitation in Account APIs.&lt;/P&gt;
&lt;P&gt;1) follow this path to create oAuth client (&lt;U&gt;&lt;EM&gt;Account Homepage &amp;gt; select environment &amp;gt; Identity &amp;amp; access management &amp;gt; oAuth clients&lt;/EM&gt;&lt;/U&gt;)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_0-1730878043951.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24409iB0D1F24D32674CE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MostafaHussein_0-1730878043951.png" alt="MostafaHussein_0-1730878043951.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2) select the following scope&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;account-uac-read&lt;/STRONG&gt; (take note with this we'll use it later)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;take in consideration that the user you're using for creating this client must has the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;User has to be active&lt;/LI&gt;
&lt;LI&gt;User must hold the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;account-user-management&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;permission&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_1-1730878473528.png" style="width: 489px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24410iCA4901D08ADE8C06/image-dimensions/489x582?v=v2" width="489" height="582" role="button" title="MostafaHussein_1-1730878473528.png" alt="MostafaHussein_1-1730878473528.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) before the client is created, open txt and save the following items in addition to the &lt;U&gt;&lt;EM&gt;scope&lt;/EM&gt; &lt;/U&gt;we've saved previously as the above figure and click &lt;U&gt;&lt;EM&gt;Finish&lt;/EM&gt;&lt;/U&gt;:&lt;BR /&gt;- client id&lt;BR /&gt;- client secret&lt;BR /&gt;- Dynatrace account URN&lt;BR /&gt;- account uuid: extract it from the URN (&lt;EM&gt;&lt;U&gt;we will need it later&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_2-1730879016268.png" style="width: 486px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24411iBE325347735A844B/image-dimensions/486x339?v=v2" width="486" height="339" role="button" title="MostafaHussein_2-1730879016268.png" alt="MostafaHussein_2-1730879016268.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4) open PostMan and create new collection as the following figure&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_3-1730879439653.png" style="width: 486px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24412i876D35441CD256F3/image-dimensions/486x209?v=v2" width="486" height="209" role="button" title="MostafaHussein_3-1730879439653.png" alt="MostafaHussein_3-1730879439653.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;5) open the collection, then go to Variables tab then create new variable named `oauth_token` for now leave it blank we'll automate filling it in the next step&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_5-1730879936076.png" style="width: 787px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24414iE83DE96B755E3AD9/image-dimensions/787x248?v=v2" width="787" height="248" role="button" title="MostafaHussein_5-1730879936076.png" alt="MostafaHussein_5-1730879936076.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6) create new request with, set the url to&amp;nbsp;&lt;A href="https://sso.dynatrace.com/sso/oauth2/token" target="_blank" rel="noopener"&gt;https://sso.dynatrace.com/sso/oauth2/token&lt;/A&gt;&amp;nbsp;and the method to POST, in &lt;U&gt;headers&lt;/U&gt; tab set &lt;STRONG&gt;&lt;EM&gt;Content-Type&lt;/EM&gt;&lt;/STRONG&gt; to&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;application/x-www-form-urlencoded&lt;/EM&gt;&lt;/STRONG&gt;, finally rename it to `&lt;STRONG&gt;oAuth Token Generation&lt;/STRONG&gt;`&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_6-1730880250008.png" style="width: 796px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24415i683EBAB4BE6F8177/image-dimensions/796x589?v=v2" width="796" height="589" role="button" title="MostafaHussein_6-1730880250008.png" alt="MostafaHussein_6-1730880250008.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;7) under scripts tab, use this code that extract the access_token value from the response once the request is sent then set the variable `oauth_token` we made in the beginning with the captured value from the response&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;pm.test("Set collectionVariables variable", () =&amp;gt; {
    pm.collectionVariables.set("oauth_token", pm.response.json()['access_token']);
    console.log(pm.response.json());
});&lt;/LI-CODE&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_7-1730880607607.png" style="width: 800px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24416iFFE24F802DFA082F/image-dimensions/800x407?v=v2" width="800" height="407" role="button" title="MostafaHussein_7-1730880607607.png" alt="MostafaHussein_7-1730880607607.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; instead of adding all required parameters to the URL it's little bit confusing, i'll add it to the body of the request as the following figure&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_8-1730880782974.png" style="width: 840px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24418iB468B88EBC3F5CE1/image-dimensions/840x397?v=v2" width="840" height="397" role="button" title="MostafaHussein_8-1730880782974.png" alt="MostafaHussein_8-1730880782974.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;9) save the collection and the oAuth request (very important), and try send the request "OAuth Token Generation" then go to the collection variables and see it's value to validate it's updated successfully.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_9-1730882012352.png" style="width: 757px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24420iDDA9595A1EA420D6/image-dimensions/757x258?v=v2" width="757" height="258" role="button" title="MostafaHussein_9-1730882012352.png" alt="MostafaHussein_9-1730882012352.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_10-1730882160620.png" style="width: 621px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24422i88C3D0B84E6DB7A0/image-dimensions/621x333?v=v2" width="621" height="333" role="button" title="MostafaHussein_10-1730882160620.png" alt="MostafaHussein_10-1730882160620.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;in the collection variables&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_11-1730882219174.png" style="width: 622px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24423iD65572EE477B4481/image-dimensions/622x224?v=v2" width="622" height="224" role="button" title="MostafaHussein_11-1730882219174.png" alt="MostafaHussein_11-1730882219174.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;10) add new GET request and name it `subscriptions` with this endpoint&amp;nbsp;&lt;A href="https://api.dynatrace.com/sub/v2/accounts/{accountUuid}/subscriptions" target="_blank" rel="noopener"&gt;https://api.dynatrace.com/sub/v2/accounts/{accountUuid}/subscriptions&lt;/A&gt;&amp;nbsp;and replace the {&lt;U&gt;&lt;EM&gt;accountUuid}&lt;/EM&gt; &lt;/U&gt;with the value that has been captured in &lt;U&gt;&lt;EM&gt;step no. 3&lt;/EM&gt;&lt;/U&gt;, then add to headers the key &lt;STRONG&gt;Authorization&lt;/STRONG&gt;&amp;nbsp;and value `&lt;STRONG&gt;Bearer {{oauth_token}}&lt;/STRONG&gt;` as the &lt;U&gt;&lt;EM&gt;oauth_token&lt;/EM&gt; &lt;/U&gt;is the variable name that has been set when executed the request named "&lt;STRONG&gt;OAuth Token Generation&lt;/STRONG&gt;", see this reference link&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/account-api-dps-subscriptions-get-all" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/account-api-dps-subscriptions-get-all&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_0-1730885644523.png" style="width: 792px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24426i017F407A037CD076/image-dimensions/792x838?v=v2" width="792" height="838" role="button" title="MostafaHussein_0-1730885644523.png" alt="MostafaHussein_0-1730885644523.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Mostafa Hussein.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2024 13:12:27 GMT</pubDate>
    <dc:creator>MostafaHussein</dc:creator>
    <dc:date>2024-11-12T13:12:27Z</dc:date>
    <item>
      <title>oAuth 2.0 automate token generation in Postman</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/oAuth-2-0-automate-token-generation-in-Postman/m-p/261675#M1489</link>
      <description>&lt;P&gt;It's simple and efficient trick to leverage Postman scripting features to get automate access tokens generation process to gain faster implementation than creating new one each 5 minutes as it's a limitation in Account APIs.&lt;/P&gt;
&lt;P&gt;1) follow this path to create oAuth client (&lt;U&gt;&lt;EM&gt;Account Homepage &amp;gt; select environment &amp;gt; Identity &amp;amp; access management &amp;gt; oAuth clients&lt;/EM&gt;&lt;/U&gt;)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_0-1730878043951.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24409iB0D1F24D32674CE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MostafaHussein_0-1730878043951.png" alt="MostafaHussein_0-1730878043951.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;2) select the following scope&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;account-uac-read&lt;/STRONG&gt; (take note with this we'll use it later)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;take in consideration that the user you're using for creating this client must has the following:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;User has to be active&lt;/LI&gt;
&lt;LI&gt;User must hold the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;account-user-management&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;permission&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_1-1730878473528.png" style="width: 489px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24410iCA4901D08ADE8C06/image-dimensions/489x582?v=v2" width="489" height="582" role="button" title="MostafaHussein_1-1730878473528.png" alt="MostafaHussein_1-1730878473528.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3) before the client is created, open txt and save the following items in addition to the &lt;U&gt;&lt;EM&gt;scope&lt;/EM&gt; &lt;/U&gt;we've saved previously as the above figure and click &lt;U&gt;&lt;EM&gt;Finish&lt;/EM&gt;&lt;/U&gt;:&lt;BR /&gt;- client id&lt;BR /&gt;- client secret&lt;BR /&gt;- Dynatrace account URN&lt;BR /&gt;- account uuid: extract it from the URN (&lt;EM&gt;&lt;U&gt;we will need it later&lt;/U&gt;&lt;/EM&gt;)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_2-1730879016268.png" style="width: 486px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24411iBE325347735A844B/image-dimensions/486x339?v=v2" width="486" height="339" role="button" title="MostafaHussein_2-1730879016268.png" alt="MostafaHussein_2-1730879016268.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;4) open PostMan and create new collection as the following figure&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_3-1730879439653.png" style="width: 486px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24412i876D35441CD256F3/image-dimensions/486x209?v=v2" width="486" height="209" role="button" title="MostafaHussein_3-1730879439653.png" alt="MostafaHussein_3-1730879439653.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;5) open the collection, then go to Variables tab then create new variable named `oauth_token` for now leave it blank we'll automate filling it in the next step&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_5-1730879936076.png" style="width: 787px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24414iE83DE96B755E3AD9/image-dimensions/787x248?v=v2" width="787" height="248" role="button" title="MostafaHussein_5-1730879936076.png" alt="MostafaHussein_5-1730879936076.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6) create new request with, set the url to&amp;nbsp;&lt;A href="https://sso.dynatrace.com/sso/oauth2/token" target="_blank" rel="noopener"&gt;https://sso.dynatrace.com/sso/oauth2/token&lt;/A&gt;&amp;nbsp;and the method to POST, in &lt;U&gt;headers&lt;/U&gt; tab set &lt;STRONG&gt;&lt;EM&gt;Content-Type&lt;/EM&gt;&lt;/STRONG&gt; to&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;&lt;EM&gt;application/x-www-form-urlencoded&lt;/EM&gt;&lt;/STRONG&gt;, finally rename it to `&lt;STRONG&gt;oAuth Token Generation&lt;/STRONG&gt;`&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_6-1730880250008.png" style="width: 796px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24415i683EBAB4BE6F8177/image-dimensions/796x589?v=v2" width="796" height="589" role="button" title="MostafaHussein_6-1730880250008.png" alt="MostafaHussein_6-1730880250008.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;7) under scripts tab, use this code that extract the access_token value from the response once the request is sent then set the variable `oauth_token` we made in the beginning with the captured value from the response&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;pm.test("Set collectionVariables variable", () =&amp;gt; {
    pm.collectionVariables.set("oauth_token", pm.response.json()['access_token']);
    console.log(pm.response.json());
});&lt;/LI-CODE&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_7-1730880607607.png" style="width: 800px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24416iFFE24F802DFA082F/image-dimensions/800x407?v=v2" width="800" height="407" role="button" title="MostafaHussein_7-1730880607607.png" alt="MostafaHussein_7-1730880607607.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt; instead of adding all required parameters to the URL it's little bit confusing, i'll add it to the body of the request as the following figure&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_8-1730880782974.png" style="width: 840px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24418iB468B88EBC3F5CE1/image-dimensions/840x397?v=v2" width="840" height="397" role="button" title="MostafaHussein_8-1730880782974.png" alt="MostafaHussein_8-1730880782974.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;9) save the collection and the oAuth request (very important), and try send the request "OAuth Token Generation" then go to the collection variables and see it's value to validate it's updated successfully.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_9-1730882012352.png" style="width: 757px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24420iDDA9595A1EA420D6/image-dimensions/757x258?v=v2" width="757" height="258" role="button" title="MostafaHussein_9-1730882012352.png" alt="MostafaHussein_9-1730882012352.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_10-1730882160620.png" style="width: 621px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24422i88C3D0B84E6DB7A0/image-dimensions/621x333?v=v2" width="621" height="333" role="button" title="MostafaHussein_10-1730882160620.png" alt="MostafaHussein_10-1730882160620.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;in the collection variables&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_11-1730882219174.png" style="width: 622px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24423iD65572EE477B4481/image-dimensions/622x224?v=v2" width="622" height="224" role="button" title="MostafaHussein_11-1730882219174.png" alt="MostafaHussein_11-1730882219174.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;10) add new GET request and name it `subscriptions` with this endpoint&amp;nbsp;&lt;A href="https://api.dynatrace.com/sub/v2/accounts/{accountUuid}/subscriptions" target="_blank" rel="noopener"&gt;https://api.dynatrace.com/sub/v2/accounts/{accountUuid}/subscriptions&lt;/A&gt;&amp;nbsp;and replace the {&lt;U&gt;&lt;EM&gt;accountUuid}&lt;/EM&gt; &lt;/U&gt;with the value that has been captured in &lt;U&gt;&lt;EM&gt;step no. 3&lt;/EM&gt;&lt;/U&gt;, then add to headers the key &lt;STRONG&gt;Authorization&lt;/STRONG&gt;&amp;nbsp;and value `&lt;STRONG&gt;Bearer {{oauth_token}}&lt;/STRONG&gt;` as the &lt;U&gt;&lt;EM&gt;oauth_token&lt;/EM&gt; &lt;/U&gt;is the variable name that has been set when executed the request named "&lt;STRONG&gt;OAuth Token Generation&lt;/STRONG&gt;", see this reference link&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/shortlink/account-api-dps-subscriptions-get-all" target="_blank" rel="noopener"&gt;https://docs.dynatrace.com/docs/shortlink/account-api-dps-subscriptions-get-all&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MostafaHussein_0-1730885644523.png" style="width: 792px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24426i017F407A037CD076/image-dimensions/792x838?v=v2" width="792" height="838" role="button" title="MostafaHussein_0-1730885644523.png" alt="MostafaHussein_0-1730885644523.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;BR,&lt;BR /&gt;Mostafa Hussein.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 13:12:27 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/oAuth-2-0-automate-token-generation-in-Postman/m-p/261675#M1489</guid>
      <dc:creator>MostafaHussein</dc:creator>
      <dc:date>2024-11-12T13:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: oAuth 2.0 automate token generation in Postman</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/oAuth-2-0-automate-token-generation-in-Postman/m-p/261865#M1491</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/66935"&gt;@MostafaHussein&lt;/a&gt;&amp;nbsp;- Good one !!&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 00:15:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/oAuth-2-0-automate-token-generation-in-Postman/m-p/261865#M1491</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2024-11-08T00:15:24Z</dc:date>
    </item>
  </channel>
</rss>

