<?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: How to use the User management APIs - what is the bearer field value? in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/224002#M28712</link>
    <description>&lt;P&gt;Hi, I have the same problem, is not working for me&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/account-api-authentication#request-a-token" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/account-api-authentication#request-a-token&lt;/A&gt;&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="Screenshot 2023-09-27 at 16.28.55.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14316iE9460998C7782981/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-09-27 at 16.28.55.png" alt="Screenshot 2023-09-27 at 16.28.55.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Sep 2023 14:30:25 GMT</pubDate>
    <dc:creator>Duran_Narbona</dc:creator>
    <dc:date>2023-09-27T14:30:25Z</dc:date>
    <item>
      <title>How to use the User management APIs - what is the bearer field value?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/166256#M17042</link>
      <description>&lt;P&gt;I am trying to use the user management APIs, as they are shown in this page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://api.dynatrace.com/spec/#/User%20Management/UsersController_getUsers" target="_blank"&gt;https://api.dynatrace.com/spec/#/User%20Management/UsersController_getUsers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i click authorize at the top right it ask for a bearer, http, what is that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;should i enter a PAT, an API token or what exactly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i also went to th eaccount management APIs section and generated client ID and secret, but as per your documentation, i am having issues to generate the Token from there, you have this snippet in there, is this snippet correct? does not look correct to me, why there is this strange string at the end on the parameters list:&amp;nbsp;&lt;SPAN&gt;%3Adtaccount% ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;POST /sso/oauth2/token HTTP/1.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Host: sso.dynatrace.com&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Content-Type: application/x-www-form-urlencoded&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;grant_type=client_credentials&amp;amp;client_id={your client id}&amp;amp;client_secret={your client secret}&amp;amp;scope=account-idm-read+account-idm-write&amp;amp;resource=urn%3Adtaccount%{your account UID}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 22:06:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/166256#M17042</guid>
      <dc:creator>DavidePiras</dc:creator>
      <dc:date>2021-05-19T22:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the User management APIs - what is the bearer field value?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/166450#M17071</link>
      <description>&lt;P&gt;Hi davide_piras,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The resource parameter is simply to let dynatrace SSO know that the token will be scoped to a particular account as users can be on multiple accounts.&amp;nbsp; What you see is URL encoded.&amp;nbsp; It will look something like this:&amp;nbsp;&amp;nbsp;urn:dtaccount:00000000000-0000-0000-000000-0000000000000 where the "0"'s would be replaced with our account UUID.&amp;nbsp; Once you make the request you will get a JSON payload payload with a field called "access_token".&amp;nbsp; You can copy this and paste it into the the swagger and run the request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 21:08:51 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/166450#M17071</guid>
      <dc:creator>ryan_hess</dc:creator>
      <dc:date>2021-05-21T21:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the User management APIs - what is the bearer field value?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/166467#M17077</link>
      <description>&lt;P&gt;Thanks Ryan, the documentation page doesn't only have that error, also the scope to be used is not:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;scope=account-idm-read+account-idm-write&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but the correct value is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;scope=account-idm-read account-idm-write&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;without a plus,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I got help from the consultant in the in-product chat, i understand url is encoded but as it is not clickable anyway and values should be replaced, that page would be more helpful if explaining clearly in details which value in each parameter for instance with a screenshot from Postman, SoapUI or whatever other http client...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;anyway all worked now for me and i could successfully retrieve that token.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Davide&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 22 May 2021 09:47:26 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/166467#M17077</guid>
      <dc:creator>DavidePiras</dc:creator>
      <dc:date>2021-05-22T09:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the User management APIs - what is the bearer field value?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/166579#M17137</link>
      <description>&lt;P&gt;Hi Davide,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate the feedback.&amp;nbsp; I'll take this back to the team and see if we can come up with some simpler explanation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Tue, 25 May 2021 15:01:55 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/166579#M17137</guid>
      <dc:creator>ryan_hess</dc:creator>
      <dc:date>2021-05-25T15:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the User management APIs - what is the bearer field value?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/224002#M28712</link>
      <description>&lt;P&gt;Hi, I have the same problem, is not working for me&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/shortlink/account-api-authentication#request-a-token" target="_blank"&gt;https://www.dynatrace.com/support/help/shortlink/account-api-authentication#request-a-token&lt;/A&gt;&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="Screenshot 2023-09-27 at 16.28.55.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/14316iE9460998C7782981/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-09-27 at 16.28.55.png" alt="Screenshot 2023-09-27 at 16.28.55.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Sep 2023 14:30:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/224002#M28712</guid>
      <dc:creator>Duran_Narbona</dc:creator>
      <dc:date>2023-09-27T14:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the User management APIs - what is the bearer field value?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/278719#M36683</link>
      <description>&lt;P&gt;I guess you have already solved this, but this for the file:&lt;/P&gt;&lt;P&gt;Simple as Windows Batch file&lt;/P&gt;&lt;P&gt;curl -X POST "&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;" ^&lt;BR /&gt;-H "Content-Type: application/x-www-form-urlencoded" ^&lt;BR /&gt;-d "grant_type=client_credentials" ^&lt;BR /&gt;-d "scope=THE_SCOPE_THAT_IS_NEEDED_FROM_THE_API_SWAGGER_PAGE" ^&lt;BR /&gt;-d "client_id=dt0s02.GU3CXFD6" ^&lt;BR /&gt;&amp;nbsp;"client_secret=OBTAINED_AFTER_CREATION_OF_OAUTH" ^&lt;BR /&gt;-d "resource=OBTAINED_AFTER_CREATION_OF_OAUTH"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should get a response like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;C:\Users\1026014&amp;gt;curl -X POST "&lt;/SPAN&gt;&lt;SPAN&gt;&lt;A class="" title="Ctrl + Click to open https://sso.dynatrace.com/sso/oauth2/token in a new tab" href="https://sso.dynatrace.com/sso/oauth2/token" target="_blank" rel="noopener noreferrer"&gt;&lt;SPAN&gt;https://sso.dynatrace.com/sso/oauth2/token&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;" -H "Content-Type: application/x-www-form-urlencoded" -d "grant_type=client_credentials" -d "scope=environment-api:entities:read" -d "client_id=dt0s02.GU3CXFD6" -d "client_secret=CLINET_SECRET" -d "resource=urn:dtaccount:74a359b4-9323-4b88-9649-d1245f95cfe7"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;{"scope":"environment-api:entities:read","token_type":"Bearer","expires_in":300,"access_token":"YOUR_BEARER_TOKEN","resource":"YOUR_URN"} "Creation Date: 04-06-2025"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Anybody having issues with OAUTH tokens that want to share, as some API do not work anymore with OAUTH Bearer tokens.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:53:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/278719#M36683</guid>
      <dc:creator>MarwanC</dc:creator>
      <dc:date>2025-06-04T15:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the User management APIs - what is the bearer field value?</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/278720#M36684</link>
      <description>&lt;P&gt;Indeed the format of the scope space separated format.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jun 2025 15:55:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-use-the-User-management-APIs-what-is-the-bearer-field/m-p/278720#M36684</guid>
      <dc:creator>MarwanC</dc:creator>
      <dc:date>2025-06-04T15:55:01Z</dc:date>
    </item>
  </channel>
</rss>

