1. Packages
  2. Packages
  3. Dynatrace
  4. API Docs
  5. MgmzPermission
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse
dynatrace logo
Viewing docs for Dynatrace v0.36.0
published on Tuesday, Jun 9, 2026 by Pulumiverse

    Dynatrace Managed only

    To utilize this resource, please define the environment variables DT_CLUSTER_URL and DT_CLUSTER_API_TOKEN with the cluster API token scope Service Provider API (ServiceProviderAPI).

    Dynatrace Documentation

    • Manage Groups and Permissions - https://docs.dynatrace.com/managed/manage/identity-access-management/user-and-group-management/user-groups-and-permissions#mz

    • User management API - https://www.dynatrace.com/support/help/dynatrace-api/account-management-api/user-management-api

    Export Example Usage

    • terraform-provider-dynatrace -export dynatrace.MgmzPermission downloads all user group / management zone permissions

    The full documentation of the export feature is available here.

    Resource Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dynatrace from "@pulumiverse/dynatrace";
    
    const some_perm = new dynatrace.MgmzPermission("some-perm", {
        group: group_a.id,
        environment: "d85dea6a-4287-49d3-bf62-729274ba7036",
        managementZone: "982182035185200933",
        permissions: [
            "VIEWER",
            "REPLAY_SESSION_DATA",
        ],
    });
    
    import pulumi
    import pulumiverse_dynatrace as dynatrace
    
    some_perm = dynatrace.MgmzPermission("some-perm",
        group=group_a["id"],
        environment="d85dea6a-4287-49d3-bf62-729274ba7036",
        management_zone="982182035185200933",
        permissions=[
            "VIEWER",
            "REPLAY_SESSION_DATA",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dynatrace.NewMgmzPermission(ctx, "some-perm", &dynatrace.MgmzPermissionArgs{
    			Group:          pulumi.Any(group_a.Id),
    			Environment:    pulumi.String("d85dea6a-4287-49d3-bf62-729274ba7036"),
    			ManagementZone: pulumi.String("982182035185200933"),
    			Permissions: pulumi.StringArray{
    				pulumi.String("VIEWER"),
    				pulumi.String("REPLAY_SESSION_DATA"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dynatrace = Pulumiverse.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var some_perm = new Dynatrace.MgmzPermission("some-perm", new()
        {
            Group = group_a.Id,
            Environment = "d85dea6a-4287-49d3-bf62-729274ba7036",
            ManagementZone = "982182035185200933",
            Permissions = new[]
            {
                "VIEWER",
                "REPLAY_SESSION_DATA",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dynatrace.MgmzPermission;
    import com.pulumi.dynatrace.MgmzPermissionArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var some_perm = new MgmzPermission("some-perm", MgmzPermissionArgs.builder()
                .group(group_a.id())
                .environment("d85dea6a-4287-49d3-bf62-729274ba7036")
                .managementZone("982182035185200933")
                .permissions(            
                    "VIEWER",
                    "REPLAY_SESSION_DATA")
                .build());
    
        }
    }
    
    resources:
      some-perm:
        type: dynatrace:MgmzPermission
        properties:
          group: ${["group-a"].id}
          environment: d85dea6a-4287-49d3-bf62-729274ba7036
          managementZone: '982182035185200933'
          permissions:
            - VIEWER
            - REPLAY_SESSION_DATA
    
    pulumi {
      required_providers {
        dynatrace = {
          source = "pulumi/dynatrace"
        }
      }
    }
    
    resource "dynatrace_mgmzpermission" "some-perm" {
      group           = group-a.id
      environment     = "d85dea6a-4287-49d3-bf62-729274ba7036"
      management_zone = "982182035185200933"
      permissions     = ["VIEWER", "REPLAY_SESSION_DATA"]
    }
    

    Create MgmzPermission Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MgmzPermission(name: string, args: MgmzPermissionArgs, opts?: CustomResourceOptions);
    @overload
    def MgmzPermission(resource_name: str,
                       args: MgmzPermissionArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def MgmzPermission(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       environment: Optional[str] = None,
                       group: Optional[str] = None,
                       management_zone: Optional[str] = None,
                       permissions: Optional[Sequence[str]] = None)
    func NewMgmzPermission(ctx *Context, name string, args MgmzPermissionArgs, opts ...ResourceOption) (*MgmzPermission, error)
    public MgmzPermission(string name, MgmzPermissionArgs args, CustomResourceOptions? opts = null)
    public MgmzPermission(String name, MgmzPermissionArgs args)
    public MgmzPermission(String name, MgmzPermissionArgs args, CustomResourceOptions options)
    
    type: dynatrace:MgmzPermission
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "dynatrace_mgmzpermission" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args MgmzPermissionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MgmzPermissionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MgmzPermissionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MgmzPermissionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MgmzPermissionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var mgmzPermissionResource = new Dynatrace.MgmzPermission("mgmzPermissionResource", new()
    {
        Environment = "string",
        Group = "string",
        ManagementZone = "string",
        Permissions = new[]
        {
            "string",
        },
    });
    
    example, err := dynatrace.NewMgmzPermission(ctx, "mgmzPermissionResource", &dynatrace.MgmzPermissionArgs{
    	Environment:    pulumi.String("string"),
    	Group:          pulumi.String("string"),
    	ManagementZone: pulumi.String("string"),
    	Permissions: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    resource "dynatrace_mgmzpermission" "mgmzPermissionResource" {
      environment     = "string"
      group           = "string"
      management_zone = "string"
      permissions     = ["string"]
    }
    
    var mgmzPermissionResource = new MgmzPermission("mgmzPermissionResource", MgmzPermissionArgs.builder()
        .environment("string")
        .group("string")
        .managementZone("string")
        .permissions("string")
        .build());
    
    mgmz_permission_resource = dynatrace.MgmzPermission("mgmzPermissionResource",
        environment="string",
        group="string",
        management_zone="string",
        permissions=["string"])
    
    const mgmzPermissionResource = new dynatrace.MgmzPermission("mgmzPermissionResource", {
        environment: "string",
        group: "string",
        managementZone: "string",
        permissions: ["string"],
    });
    
    type: dynatrace:MgmzPermission
    properties:
        environment: string
        group: string
        managementZone: string
        permissions:
            - string
    

    MgmzPermission Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MgmzPermission resource accepts the following input properties:

    Environment string
    The UUID of the environment
    Group string
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    ManagementZone string
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    Permissions List<string>
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    Environment string
    The UUID of the environment
    Group string
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    ManagementZone string
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    Permissions []string
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    environment string
    The UUID of the environment
    group string
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    management_zone string
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    permissions list(string)
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    environment String
    The UUID of the environment
    group String
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    managementZone String
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    permissions List<String>
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    environment string
    The UUID of the environment
    group string
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    managementZone string
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    permissions string[]
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    environment str
    The UUID of the environment
    group str
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    management_zone str
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    permissions Sequence[str]
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    environment String
    The UUID of the environment
    group String
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    managementZone String
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    permissions List<String>
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MgmzPermission resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MgmzPermission Resource

    Get an existing MgmzPermission resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MgmzPermissionState, opts?: CustomResourceOptions): MgmzPermission
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            environment: Optional[str] = None,
            group: Optional[str] = None,
            management_zone: Optional[str] = None,
            permissions: Optional[Sequence[str]] = None) -> MgmzPermission
    func GetMgmzPermission(ctx *Context, name string, id IDInput, state *MgmzPermissionState, opts ...ResourceOption) (*MgmzPermission, error)
    public static MgmzPermission Get(string name, Input<string> id, MgmzPermissionState? state, CustomResourceOptions? opts = null)
    public static MgmzPermission get(String name, Output<String> id, MgmzPermissionState state, CustomResourceOptions options)
    resources:  _:    type: dynatrace:MgmzPermission    get:      id: ${id}
    import {
      to = dynatrace_mgmzpermission.example
      id = "${id}"
    }
    
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Environment string
    The UUID of the environment
    Group string
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    ManagementZone string
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    Permissions List<string>
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    Environment string
    The UUID of the environment
    Group string
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    ManagementZone string
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    Permissions []string
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    environment string
    The UUID of the environment
    group string
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    management_zone string
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    permissions list(string)
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    environment String
    The UUID of the environment
    group String
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    managementZone String
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    permissions List<String>
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    environment string
    The UUID of the environment
    group string
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    managementZone string
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    permissions string[]
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    environment str
    The UUID of the environment
    group str
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    management_zone str
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    permissions Sequence[str]
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.
    environment String
    The UUID of the environment
    group String
    The ID of the group the permissions are valid for. You may refer to the id of a resource dynatrace.UserGroup here
    managementZone String
    The ID of the management zone the permissions are valid for. When referring to resource dynatrace.ManagementZoneV2 or data source dynatrace.ManagementZone you need to refer to the attribute legacyId.
    permissions List<String>
    The permissions to assign for that management zone. Allowed values are DEMO_USER, LOG_VIEWER, MANAGE_SECURITY_PROBLEMS, MANAGE_SETTINGS, REPLAY_SESSION_DATA, REPLAY_SESSION_DATA_WITHOUT_MASKING, VIEWER, VIEW_SENSITIVE_REQUEST_DATA. Note: In order to produce non-empty plans specifying at least the permission VIEWER is recommended. Your Dynatrace Cluster will enforce that permission, regardless of whether it has been specified or not.

    Package Details

    Repository
    dynatrace pulumiverse/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Viewing docs for Dynatrace v0.36.0
    published on Tuesday, Jun 9, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial