# MCP Server Challenge entry #4: Automation of the group creation in Dynatrace, using Dynatrace APIs

**URL:** <https://community.dynatrace.com/t/mcp-server-challenge-entry-4-automation-of-the-group-creation-in-dynatrace-using-dynatrace-apis/55648>\
**Category:** AI\
**Tags:** mcp-server-challenge, automations, dynatrace-api\
**Created:** [April 21, 2026, 7:28pm UTC](https://community.dynatrace.com/t/mcp-server-challenge-entry-4-automation-of-the-group-creation-in-dynatrace-using-dynatrace-apis/55648 "2026-04-21T19:28:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![balarin](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@balarin](https://community.dynatrace.com/u/balarin)\
**Post date:** [April 21, 2026, 7:28pm UTC](https://community.dynatrace.com/t/mcp-server-challenge-entry-4-automation-of-the-group-creation-in-dynatrace-using-dynatrace-apis/55648/1 "2026-04-21T19:28:55Z")

</div>

#### The Dynatrace Group Creation was a manual process that required over 50 steps, we wrote a PowerShell script that uses the Dynatrace APIs to fully automate the process.&nbsp;This script cuts down administrative workload. A saving of ± 5 to 10 man hours per group created.

**Value Stream Mapping: Dynatrace Group Creation**

| _ **Metric** _ | _**Old Process (Manual)**_ | _**New Process (Automated)**_ |
| --- | --- | --- |
| **Number of Steps** | ~50 click/type actions | 1 script execution |
| **Total Lead Time** | ~5 hours | ~5–10 minutes |
| **Wait Time** | High (approvals, page loads) | Near zero (once the AD group is created). |
| **Value-Added Time** | ~30% (actual config) | ~95% (script execution) |
| **Error Risk** | High (manual entry) | Low (validated script) |
| **Repeatability** | Low | High (idempotent script) |

#### **Flow Comparison:**

- **Old process:**  
Follow the Dynatrace Group Creation&nbsp;checklist (50 steps) → Request an application role in Service Now → Manual AD group creation → Create a new management Zone → Create a new policy → Create a new SAML group → Bind group to Policy→ Assign roles → Validate → Document → Notify  
(Multiple handoffs, approvals, and UI navigation)
- **New process:**  
Request an application role in Service Now → Run Dynatrace\_Create\_Group.ps1 → Script creates AD group, Dynatrace groups, management zones, policy, binds groups to policy, assigns roles and validates → Outputs log  
(Single automated flow, no manual clicks)

* * *

#### **Impact**

- **Time Saved:** ~90% reduction (5 hours → \<10 minutes)
- **Error Reduction:** Eliminated manual typos and missed steps
- **Scalability:** Can onboard multiple groups in parallel
- **Auditability:** Script logs provide traceability

 ![Automated_group_creation.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/5/95470e5f534b46a0534c906f353af32d22ca5505.jpeg)

---

<div class="post-metadata">

**Author:** ![andreas\_grabner](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/andreas_grabner/32/27879_2.png) [@andreas\_grabner](https://community.dynatrace.com/u/andreas_grabner)\
**Post date:** [May 11, 2026, 2:42pm UTC](https://community.dynatrace.com/t/mcp-server-challenge-entry-4-automation-of-the-group-creation-in-dynatrace-using-dynatrace-apis/55648/2 "2026-05-11T14:42:25Z")

</div>

Hi.

While this is not using the MCP as per request of the contest I think the outcome is AMAZING.

Also – it shows that not everything needs an AI/LLM as often a simple script is more powerful, cheaper and more deterministic then running it through an Agent

Question: Have you thought about using the MCP to create those scripts? or use the MCP from those scripts?
