<?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: HTT 401 Error: Unauthorized Dynatrace Account Management API in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/HTT-401-Error-Unauthorized-Dynatrace-Account-Management-API/m-p/237425#M2957</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/18264"&gt;@dannemca&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;I confirm you I'm copying the entire string (1094 characters length).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Feb 2024 13:49:55 GMT</pubDate>
    <dc:creator>erh_inetum</dc:creator>
    <dc:date>2024-02-19T13:49:55Z</dc:date>
    <item>
      <title>HTT 401 Error: Unauthorized Dynatrace Account Management API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/HTT-401-Error-Unauthorized-Dynatrace-Account-Management-API/m-p/237420#M2955</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to get information from users using&amp;nbsp;Dynatrace Account Management API without success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following this link&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/basics/dynatrace-api-authentication/account-api-authentication" target="_blank"&gt;https://docs.dynatrace.com/docs/dynatrace-api/basics/dynatrace-api-authentication/account-api-authentication&lt;/A&gt;&amp;nbsp;I've created this request in Postman that generates a bearer successfully:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_0-1708347925622.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17668i2FD85C16CCE419D7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_0-1708347925622.png" alt="erh_inetum_0-1708347925622.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But when I try to get information about the users I get HTTP 401 &lt;SPAN&gt;Unauthorized&amp;nbsp;&lt;/SPAN&gt;error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_1-1708348427091.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17669i3871068CD53E06F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_1-1708348427091.png" alt="erh_inetum_1-1708348427091.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I get the same error if I lauch this request using swagger:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_2-1708348494989.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17670iD808651A726ED661/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_2-1708348494989.png" alt="erh_inetum_2-1708348494989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what is missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 13:16:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/HTT-401-Error-Unauthorized-Dynatrace-Account-Management-API/m-p/237420#M2955</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2024-02-19T13:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: HTT 401 Error: Unauthorized Dynatrace Account Management API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/HTT-401-Error-Unauthorized-Dynatrace-Account-Management-API/m-p/237422#M2956</link>
      <description>&lt;P&gt;When creating the OAuth client, you set all the required scope in UI. Then you will get the client_id, client_secret and resource.&lt;/P&gt;&lt;P&gt;You then use these values in your POST request to get the access_token, which is a really long string. No need to set the scopes again there.&lt;/P&gt;&lt;P&gt;Make sure to copy the entire string from "access_token" value in result json.&lt;/P&gt;&lt;P&gt;From your screenshot, seems you are copying just part of it.&lt;/P&gt;&lt;P&gt;Can you confirm and let us know?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 13:43:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/HTT-401-Error-Unauthorized-Dynatrace-Account-Management-API/m-p/237422#M2956</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2024-02-19T13:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: HTT 401 Error: Unauthorized Dynatrace Account Management API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/HTT-401-Error-Unauthorized-Dynatrace-Account-Management-API/m-p/237425#M2957</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/18264"&gt;@dannemca&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;I confirm you I'm copying the entire string (1094 characters length).&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Elena.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2024 13:49:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/HTT-401-Error-Unauthorized-Dynatrace-Account-Management-API/m-p/237425#M2957</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2024-02-19T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: HTT 401 Error: Unauthorized Dynatrace Account Management API</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/HTT-401-Error-Unauthorized-Dynatrace-Account-Management-API/m-p/237475#M2958</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;More information about this.&lt;/P&gt;&lt;P&gt;It's very strange. Using the same bearer, if I launch this request&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;curl -X &lt;/SPAN&gt;&lt;SPAN&gt;'GET'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;  &lt;SPAN&gt;'https://api.dynatrace.com/sub/v2/accounts/xxxxxxxxxxxxxxxxxxx/subscriptions'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;SPAN&gt;  -H &lt;/SPAN&gt;&lt;SPAN&gt;'accept: application/json'&lt;/SPAN&gt;&lt;SPAN&gt; \&lt;/SPAN&gt;&lt;SPAN&gt;  -H &lt;/SPAN&gt;&lt;SPAN&gt;'Authorization: Bearer MY_BEARER&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;to view my suscriptions, I get HTTP 200 OK but no data is returned:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="erh_inetum_1-1708408944847.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17688i1787F4D94B489FF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="erh_inetum_1-1708408944847.png" alt="erh_inetum_1-1708408944847.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is the scope defined:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;account-idm-read account-idm-write account-env-read account-env-write account-uac-read account-uac-write iam-policies-management iam:policies:write iam:policies:read iam:bindings:write iam:bindings:read iam:effective-permissions:read app-engine:apps:run settings:objects:read settings:objects:write settings:schemas:read&amp;nbsp;oauth2:clients:manage&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2024 11:00:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/HTT-401-Error-Unauthorized-Dynatrace-Account-Management-API/m-p/237475#M2958</guid>
      <dc:creator>erh_inetum</dc:creator>
      <dc:date>2024-02-20T11:00:12Z</dc:date>
    </item>
  </channel>
</rss>

