15 Nov 2023 04:40 PM - edited 23 Nov 2023 12:21 AM
For more reference in this step you can take a look at this post from @AgataWlodarczyk with a video from @adam_gardner
Open the User menu and select Account settings (in latest Dynatrace, Account Management).
On the top navigation bar, go to Identity & access management > OAuth clients.
Select Create client.
Provide an email of the user who owns the client.
Provide a description for the new client.
Select the required token scopes. These are the scopes that the client will be able to grant. Tokens generated by the client might have different scope sets.
Select Create client.
Copy the generated information to the clipboard. Store it in a password manager for future use.
Import
Get your Bearer Token
Using Collection
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.
I also leave the links to great posts from Dynatrace blog and docs. They help to assign user permissions and have all this working.
Solved! Go to Solution.
15 Nov 2023 07:14 PM
Hi @DanielS,
WOOOOWWW! Thanks for sharing it!
Best regards,
Mizső
15 Nov 2023 09:37 PM
👌👌👌👌👌👌👌👌👌
You are welcome. Just my two cents for the community.
15 Nov 2023 09:33 PM
Let me know if you need something. Thanks.
16 Nov 2023 12:23 PM
@DanielS power🔥
12 Dec 2023 10:33 PM
The level of detail, steps-by-step is impressive for newcomers too!
Thank you for taking the time to create and share this Dan.. it is VERY appreciated!
THANK YOU for sharing your efforts my friend!!!
28 Dec 2023 01:47 PM
@DanielS many thanks for this complete guide on how to do this! Plus the postman collection with the Token refresh is magnific!
I also would like to say that (at least for me on yet Postman v9.31.27),
I had to remove the comma on line 5, at the end of the line. Otherwise the JSON is invalid, and Postman does not import the collection.
Not sure if on Postman v10 it works fine though.
Thanks!
28 Dec 2023 07:06 PM
Thanks for your feedback @gabriel_casella and the note on Postman versions, I gonna try it on another machine because right now I'm using the web version of Postman. I'm glad to hear this is helpful because it took some effort to make. Thanks again.
01 Apr 2024 09:34 PM
Thank you for this awesome guide. I have one question: "Do we need to update the expired bearer token manually?"
It looks like, currently Dynatrace does not have a "refresh token" and Postman can not auto refresh it.
https://learning.postman.com/docs/sending-requests/authorization/oauth-20/#requesting-an-oauth-20-to....
02 Apr 2024 08:37 PM
Hello @samgar-kali. Yes, right now, once expired you need to refresh the token manually.
02 Apr 2024 08:15 AM
Good JOB.
not yet on grail, but should try it once moved.
02 Aug 2024 12:07 PM
Very very useful. Good job and thanks a lot for sharing, Daniel.
Regards,
Elena.