<?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 IAM Policy - Read and write permissions on extensions configurations in Dynatrace tips</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-tips/IAM-Policy-Read-and-write-permissions-on-extensions/m-p/220907#M986</link>
    <description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Use case :&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I want to allow standard users (currently on monitoring viewer group) to modify configurations of monitoring extensions V1 and V2 deployed on a tenant.&lt;/P&gt;
&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Add a new SQL server endpoint on Sql Server Extension (V2.0)&lt;/LI&gt;
&lt;LI&gt;Modify a db query a "Generic DB Query Plugin" (V1.0) endpoint&lt;/LI&gt;
&lt;LI&gt;Remove a device from "Generic Cisco Device" configuration&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;1- Create an IAM policy&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;For Read and write permissions on V1 extensions, add the followings instructions on the policy :&lt;BR /&gt;&lt;EM&gt;ALLOW settings:objects:read, settings:objects:write, settings:schemas:read&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WHERE settings:schemaId = "builtin:monitored-technologies";&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;For Read and write permissions on V2 extensions, add the followings instructions on the policy :&lt;BR /&gt;&lt;EM&gt;ALLOW extensions:definitions:read,extensions:configurations:read;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ALLOW extensions:definitions:write,extensions:configurations:write;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2023-08-17_11h56_44.png" style="width: 637px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13651i9C4252C7098F2CA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-08-17_11h56_44.png" alt="2023-08-17_11h56_44.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;2- Enable a specific internal flag by support&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;KNOWN ISSUE (support feedback) :&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;There is a known issue on product with V2 extensions IAM Policy.&lt;BR /&gt;Actually the users that you have given them the previoous policy should be able to edit the extension via Rest API &lt;STRONG&gt;but not on the UI side.&lt;/STRONG&gt;&lt;BR /&gt;Unless user has "Manage monitoring settings" (which makes him an admin) it wont let him edit the extension.&lt;/P&gt;
&lt;P&gt;A workaround exists because this condition can be avoided by enabling a particular flag on dynatrace tenant.&lt;BR /&gt;The flag name is &lt;STRONG&gt;"com.compuware.apm.webuiff.HubDisableUiPermissionChecks.hubdupc.feature"&lt;/STRONG&gt;&lt;BR /&gt;It's an internal flag so only the support can enable it, so you have to create a case support or to ask directly on chat support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3- Create a group, attach the IAM policy and add users to the group&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Create a specific group and attach the previous policy. Add users to the group. All users will inherit from policy permissions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Additionnal tips :&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;- Readonly access on V2 extensions is possible by removing the instruction ALLOW &lt;EM&gt;extensions:definitions:write,extensions:configurations:write;&lt;/EM&gt;&lt;BR /&gt;But for me it's not really friendly because the user can modify configuration (edit button is enabled) and the error message appears at the validation step.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2023-08-17_11h24_45.png" style="width: 931px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13650i4B3C2B4DE9BCDD3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-08-17_11h24_45.png" alt="2023-08-17_11h24_45.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Readonly access it's not supported for V1 extensions :&lt;BR /&gt;&lt;EM&gt;The schema ID and schema groups can be used in policies to provide full access to this settings page. Both 'settings:objects:write' and 'settings:objects:read' are required. Read-only access is not supported.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-08-17_13h19_19.png" style="width: 200px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13652i0EA6F87BC717F419/image-size/small?v=v2&amp;amp;px=200" role="button" title="2023-08-17_13h19_19.png" alt="2023-08-17_13h19_19.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- You can filter permissions on a specific V2 extension by using a condition based on extension-name :&lt;BR /&gt;&lt;EM&gt;ALLOW extensions:definitions:read,extensions:configurations:read,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;extensions:definitions:write,extensions:configurations:write&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WHERE extensions:extension-name = "com.dynatrace.extension.sql-server";&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Only extensions filtered will appear on dynatrace hub :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AurelienGravier_0-1692271209849.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13653i707AF63465925416/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AurelienGravier_0-1692271209849.png" alt="AurelienGravier_0-1692271209849.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this tip will help some of you.&lt;/P&gt;
&lt;P&gt;Regards, Aurélien.&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2023 06:20:45 GMT</pubDate>
    <dc:creator>AurelienGravier</dc:creator>
    <dc:date>2023-08-22T06:20:45Z</dc:date>
    <item>
      <title>IAM Policy - Read and write permissions on extensions configurations</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-tips/IAM-Policy-Read-and-write-permissions-on-extensions/m-p/220907#M986</link>
      <description>&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Use case :&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I want to allow standard users (currently on monitoring viewer group) to modify configurations of monitoring extensions V1 and V2 deployed on a tenant.&lt;/P&gt;
&lt;P&gt;For example:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Add a new SQL server endpoint on Sql Server Extension (V2.0)&lt;/LI&gt;
&lt;LI&gt;Modify a db query a "Generic DB Query Plugin" (V1.0) endpoint&lt;/LI&gt;
&lt;LI&gt;Remove a device from "Generic Cisco Device" configuration&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;1- Create an IAM policy&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;For Read and write permissions on V1 extensions, add the followings instructions on the policy :&lt;BR /&gt;&lt;EM&gt;ALLOW settings:objects:read, settings:objects:write, settings:schemas:read&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WHERE settings:schemaId = "builtin:monitored-technologies";&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;For Read and write permissions on V2 extensions, add the followings instructions on the policy :&lt;BR /&gt;&lt;EM&gt;ALLOW extensions:definitions:read,extensions:configurations:read;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ALLOW extensions:definitions:write,extensions:configurations:write;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="2023-08-17_11h56_44.png" style="width: 637px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13651i9C4252C7098F2CA2/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-08-17_11h56_44.png" alt="2023-08-17_11h56_44.png" /&gt;&lt;/span&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;2- Enable a specific internal flag by support&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;KNOWN ISSUE (support feedback) :&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;There is a known issue on product with V2 extensions IAM Policy.&lt;BR /&gt;Actually the users that you have given them the previoous policy should be able to edit the extension via Rest API &lt;STRONG&gt;but not on the UI side.&lt;/STRONG&gt;&lt;BR /&gt;Unless user has "Manage monitoring settings" (which makes him an admin) it wont let him edit the extension.&lt;/P&gt;
&lt;P&gt;A workaround exists because this condition can be avoided by enabling a particular flag on dynatrace tenant.&lt;BR /&gt;The flag name is &lt;STRONG&gt;"com.compuware.apm.webuiff.HubDisableUiPermissionChecks.hubdupc.feature"&lt;/STRONG&gt;&lt;BR /&gt;It's an internal flag so only the support can enable it, so you have to create a case support or to ask directly on chat support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;3- Create a group, attach the IAM policy and add users to the group&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Create a specific group and attach the previous policy. Add users to the group. All users will inherit from policy permissions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Additionnal tips :&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;- Readonly access on V2 extensions is possible by removing the instruction ALLOW &lt;EM&gt;extensions:definitions:write,extensions:configurations:write;&lt;/EM&gt;&lt;BR /&gt;But for me it's not really friendly because the user can modify configuration (edit button is enabled) and the error message appears at the validation step.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="2023-08-17_11h24_45.png" style="width: 931px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13650i4B3C2B4DE9BCDD3C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-08-17_11h24_45.png" alt="2023-08-17_11h24_45.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Readonly access it's not supported for V1 extensions :&lt;BR /&gt;&lt;EM&gt;The schema ID and schema groups can be used in policies to provide full access to this settings page. Both 'settings:objects:write' and 'settings:objects:read' are required. Read-only access is not supported.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-08-17_13h19_19.png" style="width: 200px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13652i0EA6F87BC717F419/image-size/small?v=v2&amp;amp;px=200" role="button" title="2023-08-17_13h19_19.png" alt="2023-08-17_13h19_19.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- You can filter permissions on a specific V2 extension by using a condition based on extension-name :&lt;BR /&gt;&lt;EM&gt;ALLOW extensions:definitions:read,extensions:configurations:read,&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;extensions:definitions:write,extensions:configurations:write&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WHERE extensions:extension-name = "com.dynatrace.extension.sql-server";&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Only extensions filtered will appear on dynatrace hub :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AurelienGravier_0-1692271209849.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/13653i707AF63465925416/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AurelienGravier_0-1692271209849.png" alt="AurelienGravier_0-1692271209849.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this tip will help some of you.&lt;/P&gt;
&lt;P&gt;Regards, Aurélien.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 06:20:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-tips/IAM-Policy-Read-and-write-permissions-on-extensions/m-p/220907#M986</guid>
      <dc:creator>AurelienGravier</dc:creator>
      <dc:date>2023-08-22T06:20:45Z</dc:date>
    </item>
  </channel>
</rss>

