<?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: RBAC to ABAC migration helper scripts: Notebook and PowerShell in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/265158#M1525</link>
    <description>&lt;P&gt;Thanks Jon, CSV is a much better options for us anyway, great suggestion.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Dec 2024 21:17:10 GMT</pubDate>
    <dc:creator>pmilbrandt</dc:creator>
    <dc:date>2024-12-12T21:17:10Z</dc:date>
    <item>
      <title>RBAC to ABAC migration helper scripts: Notebook and PowerShell</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/257807#M1447</link>
      <description>&lt;P&gt;The attached Zip file contains two scripts that are provided 'as is' to help Administrators planning on migrating their Dynatrace role-based permissions to attribute-based ones in order to leverage the IAM policies.&lt;/P&gt;
&lt;P&gt;One script comes in the form of a Notebook export, which you can import and execute in your Dynatrace. The other is a PowerShell script which you can run from any machine with PowerShell installed and access to the Internet.&lt;/P&gt;
&lt;P&gt;Both script serve the same purpose; they generate a list of RBAC permissions you have currently assigned to your groups. For each discoveredRBAC permission they also recommend potential replacement with permissions defined within policies.&lt;/P&gt;
&lt;P&gt;Scripts connect to your Dynatrace using your provided OAuth token and generate&amp;nbsp; current RBAC role assignments within your Dynatrace.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P class=""&gt;Pre-Reqs:&lt;/P&gt;
&lt;UL class=""&gt;
&lt;LI&gt;Generate an OAuth Client within Account Management -&amp;gt; Identity and access management -&amp;gt; OAuth clients) with following permissions:
&lt;UL class=""&gt;
&lt;LI&gt;"View users and groups" = account-idm-read&lt;/LI&gt;
&lt;LI&gt;"View and manage policies" = iam-policies-management, iam:policies:write, iam:policies:read, iam:bindings:write, iam:bindings:read, iam:effective-permissions:read&lt;/LI&gt;
&lt;LI&gt;"View environments" = account-env-read, which allows reading ClientID and Secret from a credential&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 03 Oct 2024 06:35:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/257807#M1447</guid>
      <dc:creator>Jon2</dc:creator>
      <dc:date>2024-10-03T06:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC to ABAC migration helper scripts: Notebook and PowerShell</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/261318#M1484</link>
      <description>&lt;P&gt;Some users have reported and error when using credentialVault to retrieve your OAuth clientId/Secret and enable lines 47-57 of the notebook script. In this case, line 49 of this script (import { credentialVaultClient } from "@dynatrace-sdk/client-classic-environment-v2";) needs to go outside the export, so in line one.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 07:51:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/261318#M1484</guid>
      <dc:creator>JonU2</dc:creator>
      <dc:date>2024-11-04T07:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC to ABAC migration helper scripts: Notebook and PowerShell</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/264511#M1514</link>
      <description>&lt;P&gt;The Notebook script times out after 120 seconds, is there a way to increase the timeout?&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"error": {&lt;BR /&gt;"code": 541,&lt;BR /&gt;"message": "Execution crashed.",&lt;BR /&gt;"details": {&lt;BR /&gt;"logs": "",&lt;BR /&gt;"type": "TIMEOUT",&lt;BR /&gt;"message": "Timeout limit (120s) exceeded"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 20:24:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/264511#M1514</guid>
      <dc:creator>pmilbrandt</dc:creator>
      <dc:date>2024-12-05T20:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC to ABAC migration helper scripts: Notebook and PowerShell</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/264571#M1516</link>
      <description>&lt;P&gt;This could be related to the default AppEngine 120 max execution timeout&amp;nbsp;&lt;A href="https://docs.dynatrace.com/docs/manage/dynatrace-platform-subscription/capabilities/appengine-functions-serverless-functions" target="_blank" rel="noopener"&gt;AppEngine Functions (Serverless Functions)&lt;/A&gt;&amp;nbsp;which I do not think is configurable.&lt;BR /&gt;&lt;BR /&gt;Maybe consider doing the same but with the provided PowerShell script if that is possible for you. The syntax from a terminal window is:&lt;BR /&gt;&lt;BR /&gt;AssessRBACPermissions.ps1 &amp;lt;clientId&amp;gt; &amp;lt;clientSecret&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Dec 2024 11:35:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/264571#M1516</guid>
      <dc:creator>Jon2</dc:creator>
      <dc:date>2024-12-06T11:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC to ABAC migration helper scripts: Notebook and PowerShell</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/264782#M1521</link>
      <description>&lt;P&gt;After a bit of tweaking the powershell script, I was able to get that to run successfully.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 15:55:21 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/264782#M1521</guid>
      <dc:creator>pmilbrandt</dc:creator>
      <dc:date>2024-12-09T15:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC to ABAC migration helper scripts: Notebook and PowerShell</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/265111#M1523</link>
      <description>&lt;P&gt;Although I did get the powershell version of this to work, it doesn't provide the same information that is listed in the documentation (&lt;A href="https://docs.dynatrace.com/docs/manage/identity-access-management/permission-management/manage-user-permissions-policies/advanced/migrate-roles" target="_blank"&gt;Migrate role-based permissions to Dynatrace IAM policies — Dynatrace Docs&lt;/A&gt;).&amp;nbsp; Namely it's missing the recommended policies.&amp;nbsp; That would be the part that would be especially helpful.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From documentation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-12-12 084257.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25188i7B9EE9A936AAF196/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-12-12 084257.png" alt="Screenshot 2024-12-12 084257.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Actual powershell results:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-12-12 084326.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/25189iBBB6BB0854D9CCFE/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-12-12 084326.png" alt="Screenshot 2024-12-12 084326.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 13:48:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/265111#M1523</guid>
      <dc:creator>pmilbrandt</dc:creator>
      <dc:date>2024-12-12T13:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC to ABAC migration helper scripts: Notebook and PowerShell</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/265123#M1524</link>
      <description>&lt;P&gt;Most likely a screen res. issue on the terminal window. Lower res should show it.&lt;BR /&gt;&lt;BR /&gt;Alternatively, since you already touched the ps file, you can instead export out to .csv&lt;BR /&gt;Replace this line at the end of the script:&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;$candidateRBACPermissions&lt;/SPAN&gt; &lt;SPAN&gt;|&lt;/SPAN&gt; &lt;SPAN&gt;Format-Table&lt;/SPAN&gt; &lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;AutoSize &lt;/SPAN&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt;Wrap&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;with this:&lt;BR /&gt;$candidateRBACPermissions | Export-Csv -path ./Output.csv&lt;BR /&gt;&lt;BR /&gt;If running Windows OS might need to tweak the path...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 14:40:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/265123#M1524</guid>
      <dc:creator>Jon2</dc:creator>
      <dc:date>2024-12-12T14:40:47Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC to ABAC migration helper scripts: Notebook and PowerShell</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/265158#M1525</link>
      <description>&lt;P&gt;Thanks Jon, CSV is a much better options for us anyway, great suggestion.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2024 21:17:10 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/265158#M1525</guid>
      <dc:creator>pmilbrandt</dc:creator>
      <dc:date>2024-12-12T21:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: RBAC to ABAC migration helper scripts: Notebook and PowerShell</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/272951#M1596</link>
      <description>&lt;P&gt;Some users are reporting the PowerShell script is not filling out last to columns.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;It turns out some older versions of PowerShell do not seem to interpret this line well for the PSCustomObject:&lt;BR /&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (&lt;/SPAN&gt;&lt;SPAN&gt;$recommend&lt;/SPAN&gt;&lt;SPAN&gt;.length&lt;/SPAN&gt; &lt;SPAN&gt;-gt&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;If that's your case, consider changing it to:&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;if ($null -ne&amp;nbsp;&lt;SPAN&gt;$recommend)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Mar 2025 14:36:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/RBAC-to-ABAC-migration-helper-scripts-Notebook-and-PowerShell/m-p/272951#M1596</guid>
      <dc:creator>Jon2</dc:creator>
      <dc:date>2025-03-19T14:36:06Z</dc:date>
    </item>
  </channel>
</rss>

