<?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: Workflow to export user list in Automations</title>
    <link>https://community.dynatrace.com/t5/Automations/Workflow-to-export-user-list/m-p/299969#M2614</link>
    <description>&lt;P&gt;Thanks, Dylan - will give it a whirl.&lt;/P&gt;</description>
    <pubDate>Wed, 27 May 2026 08:57:49 GMT</pubDate>
    <dc:creator>Vasan</dc:creator>
    <dc:date>2026-05-27T08:57:49Z</dc:date>
    <item>
      <title>Workflow to export user list</title>
      <link>https://community.dynatrace.com/t5/Automations/Workflow-to-export-user-list/m-p/299741#M2607</link>
      <description>&lt;P&gt;Can anyone share a workflow that extracts user list from Dynatrace? Ideally, we need the roles for each of the users as well in an excel spreadsheet that is emailed out.&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2026 06:44:32 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Workflow-to-export-user-list/m-p/299741#M2607</guid>
      <dc:creator>Vasan</dc:creator>
      <dc:date>2026-05-21T06:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow to export user list</title>
      <link>https://community.dynatrace.com/t5/Automations/Workflow-to-export-user-list/m-p/299945#M2613</link>
      <description>&lt;P&gt;Hey Vasan,&lt;/P&gt;&lt;P&gt;Emailing an Excel spreadsheet is not possible using the default Mailing action, as it only supports a title + description in plain string (text) format and does not allow attachments.&lt;/P&gt;&lt;P&gt;What we can do instead is generate a CSV-formatted string. You can then simply copy-paste this into Excel.&lt;/P&gt;&lt;P&gt;I already have a base implementation for this that fetches all users and formats them into CSV.&lt;/P&gt;&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":wrench:"&gt;🔧&lt;/span&gt;Required configuration in the JavaScript step&lt;/H3&gt;&lt;P&gt;You will need to update the following part of the code:&lt;/P&gt;&lt;PRE&gt;await usersAndGroupsClient.getActiveUsersForOrganizationalLevel({
  levelType: "account",
  levelId: "ACCOUNTID",
  partialString: "@DOMAIN",
});&lt;/PRE&gt;&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":pushpin:"&gt;📌&lt;/span&gt;Replace these values:&lt;/H3&gt;&lt;P&gt;&lt;STRONG&gt;1. ACCOUNTID&lt;/STRONG&gt;&lt;BR /&gt;You can retrieve this from:&lt;BR /&gt;&lt;A href="https://myaccount.dynatrace.com/accounts" target="_blank" rel="noopener"&gt;https://myaccount.dynatrace.com/accounts&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;Open your account&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;The ACCOUNT UUID is visible in the URL&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Copy the UUID and replace ACCOUNTID in the code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;https://myaccount.dynatrace.com/account/home?account-uuid=xxxxx-xxxx-xxxx-xxxx-xxxx&lt;/PRE&gt;&lt;P&gt;→ Use the xxxxx-xxxx-xxxx-xxxx-xxxx part as ACCOUNTID&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;STRONG&gt;2. partialString: "@DOMAIN"&lt;/STRONG&gt;&lt;BR /&gt;This is a required filter and must be at least 3 characters long.&lt;/P&gt;&lt;P&gt;You can use part of the email domain to filter results, for example:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;"@domain"&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;".eu"&lt;/LI&gt;&lt;LI&gt;".com"&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 26 May 2026 10:24:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Workflow-to-export-user-list/m-p/299945#M2613</guid>
      <dc:creator>dylan_taelemans</dc:creator>
      <dc:date>2026-05-26T10:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow to export user list</title>
      <link>https://community.dynatrace.com/t5/Automations/Workflow-to-export-user-list/m-p/299969#M2614</link>
      <description>&lt;P&gt;Thanks, Dylan - will give it a whirl.&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2026 08:57:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Automations/Workflow-to-export-user-list/m-p/299969#M2614</guid>
      <dc:creator>Vasan</dc:creator>
      <dc:date>2026-05-27T08:57:49Z</dc:date>
    </item>
  </channel>
</rss>

