Hi, How can I generate a report from Dynatrace SaaS account that should have all the user groups and the permissions assigned to those user groups along with the users added to each group? I tried looking at account management APIs but I could find API just to get groups for a single user and the response doesn't show the permissions assigned to the group. Couldn't find a way to generate from the UI as well. Please can someone help me with this. TIA
you can use the following 2 API to get:
yes thats possible.
Here are the steps in the right order
You can either write a script for this or use the Account Management API explorer:
Dynatrace Account Management API
Thank you for the detailed steps. This helps but my only concern is I have 63 user groups and as you mentioned in step 5, I can use APIs to get details about each group, so looks like I will have to run those APIs 63 times to get info about all groups. I will try to write an automated script to do that but if you are aware of a better way, please do let me know. Thanks again for all your support 🙂
@ypareek007 I get your frustration. I have similar posts 3 years back when I joined Dynatrace. I have to say the DynaMight people (before they were DynaMights) helped me out through this forum with ProTips and just helping build stuff for me. It's no guarantee things will be solved for you, but this community is very supportive.
I'll help you out and writeup a Node-Red flow that does what Vasile documented above. I could actually use it as well. Then post the Node-Red flow, which is just a JSON, here for you download.
What I begrudgingly learned in my first year with Dynatrace is to survive you have to be able to heavily interact with the APIs. You have to be able to iterative through the 'NextPage' process to get all your data. So you really have to code the API or have something like Node-Red.
Dynatrace will suggest two things to you. Monaco, which is awesome (v2 all the way) but solves a slightly different need. And the new Automated Workflows which beyond the 3 free ones have a cost.
That's great and sounds useful. I do have experience in using Dynatrace APIs using coded programs. I had built some programs last year using VBScript which calls Dynatrace APIs, get JSON results and convert them to MS Excel and finally share as an email with all the stakeholders. I suppose I will try to modify it to generate report as per my current need. I do appreciate your offer to help though. Even though I might not need but if you still write Node-Red flow, please share with me to learn about that more.