# IAM Policy - Read and write permissions on extensions configurations

**URL:** <https://community.dynatrace.com/t/iam-policy-read-and-write-permissions-on-extensions-configurations/41247>\
**Category:** Dynatrace Tips\
**Tags:** extensions, tips-and-tricks\
**Created:** [August 17, 2023, 11:40am UTC](https://community.dynatrace.com/t/iam-policy-read-and-write-permissions-on-extensions-configurations/41247 "2023-08-17T11:40:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![agravier](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/agravier/32/29303_2.png) [@agravier](https://community.dynatrace.com/u/agravier)\
**Post date:** [August 17, 2023, 11:40am UTC](https://community.dynatrace.com/t/iam-policy-read-and-write-permissions-on-extensions-configurations/41247/1 "2023-08-17T11:40:28Z")

</div>

**Use case :**

I want to allow standard users (currently on monitoring viewer group) to modify configurations of monitoring extensions V1 and V2 deployed on a tenant.

For example:

- Add a new SQL server endpoint on Sql Server Extension (V2.0)
- Modify a db query a “Generic DB Query Plugin” (V1.0) endpoint
- Remove a device from “Generic Cisco Device” configuration

**1- Create an IAM policy**

For Read and write permissions on V1 extensions, add the followings instructions on the policy :  
_ALLOW settings:objects:read, settings:objects:write, settings:schemas:read_  
_WHERE settings:schemaId = “builtin:monitored-technologies”;_

For Read and write permissions on V2 extensions, add the followings instructions on the policy :  
_ALLOW extensions:definitions:read,extensions:configurations:read;_  
_ALLOW extensions:definitions:write,extensions:configurations:write;_

 ![2023-08-17_11h56_44.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/f/6f49b2bb03a21a1fbf903a2e66d2b447579300f2.png)

**2- Enable a specific internal flag by support**

_KNOWN ISSUE (support feedback) :_

There is a known issue on product with V2 extensions IAM Policy.  
Actually the users that you have given them the previoous policy should be able to edit the extension via Rest API **but not on the UI side.**  
Unless user has “Manage monitoring settings” (which makes him an admin) it wont let him edit the extension.

A workaround exists because this condition can be avoided by enabling a particular flag on dynatrace tenant.  
The flag name is **“com.compuware.apm.webuiff.HubDisableUiPermissionChecks.hubdupc.feature”**  
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.

**3- Create a group, attach the IAM policy and add users to the group**

Create a specific group and attach the previous policy. Add users to the group. All users will inherit from policy permissions.

**Additionnal tips :**  
- Readonly access on V2 extensions is possible by removing the instruction ALLOW _extensions:definitions:write,extensions:configurations:write;_  
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.

 ![2023-08-17_11h24_45.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/f/dfdb2d095a389e6fb8b8f80e6af51858732db26b.png)

- Readonly access it’s not supported for V1 extensions :  
_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._

 ![2023-08-17_13h19_19.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/d/3de6cd8a1ba2b7368c20e9eb006a7bd713564939.png)

- You can filter permissions on a specific V2 extension by using a condition based on extension-name :  
_ALLOW extensions:definitions:read,extensions:configurations:read,_  
_extensions:definitions:write,extensions:configurations:write_  
_WHERE extensions:extension-name = “com.dynatrace.extension.sql-server”;_

Only extensions filtered will appear on dynatrace hub :

 ![AurelienGravier_0-1692271209849.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/8/a8bb9760484edb334dfa0124a616dcbedebd368f.png)

I hope this tip will help some of you.

Regards, Aurélien.
