1. Packages
  2. Packages
  3. Power Platform
  4. API Docs
  5. EnvironmentApplicationAdmin
Viewing docs for Power Platform v0.3.3
published on Monday, May 18, 2026 by rpothin
powerplatform logo
Viewing docs for Power Platform v0.3.3
published on Monday, May 18, 2026 by rpothin

    Adds a service principal as System Administrator in a Dataverse-enabled Power Platform environment. Creates a systemuser record via the Dataverse Web API. Both environmentId and applicationId are immutable — any change triggers resource replacement.

    Create EnvironmentApplicationAdmin Resource

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

    Constructor syntax

    new EnvironmentApplicationAdmin(name: string, args: EnvironmentApplicationAdminArgs, opts?: CustomResourceOptions);
    @overload
    def EnvironmentApplicationAdmin(resource_name: str,
                                    args: EnvironmentApplicationAdminArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnvironmentApplicationAdmin(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    application_id: Optional[str] = None,
                                    environment_id: Optional[str] = None)
    func NewEnvironmentApplicationAdmin(ctx *Context, name string, args EnvironmentApplicationAdminArgs, opts ...ResourceOption) (*EnvironmentApplicationAdmin, error)
    public EnvironmentApplicationAdmin(string name, EnvironmentApplicationAdminArgs args, CustomResourceOptions? opts = null)
    public EnvironmentApplicationAdmin(String name, EnvironmentApplicationAdminArgs args)
    public EnvironmentApplicationAdmin(String name, EnvironmentApplicationAdminArgs args, CustomResourceOptions options)
    
    type: powerplatform:EnvironmentApplicationAdmin
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "powerplatform_environmentapplicationadmin" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EnvironmentApplicationAdminArgs
    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 EnvironmentApplicationAdminArgs
    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 EnvironmentApplicationAdminArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvironmentApplicationAdminArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvironmentApplicationAdminArgs
    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 environmentApplicationAdminResource = new Powerplatform.EnvironmentApplicationAdmin("environmentApplicationAdminResource", new()
    {
        ApplicationId = "string",
        EnvironmentId = "string",
    });
    
    example, err := powerplatform.NewEnvironmentApplicationAdmin(ctx, "environmentApplicationAdminResource", &powerplatform.EnvironmentApplicationAdminArgs{
    	ApplicationId: pulumi.String("string"),
    	EnvironmentId: pulumi.String("string"),
    })
    
    resource "powerplatform_environmentapplicationadmin" "environmentApplicationAdminResource" {
      application_id = "string"
      environment_id = "string"
    }
    
    var environmentApplicationAdminResource = new EnvironmentApplicationAdmin("environmentApplicationAdminResource", EnvironmentApplicationAdminArgs.builder()
        .applicationId("string")
        .environmentId("string")
        .build());
    
    environment_application_admin_resource = powerplatform.EnvironmentApplicationAdmin("environmentApplicationAdminResource",
        application_id="string",
        environment_id="string")
    
    const environmentApplicationAdminResource = new powerplatform.EnvironmentApplicationAdmin("environmentApplicationAdminResource", {
        applicationId: "string",
        environmentId: "string",
    });
    
    type: powerplatform:EnvironmentApplicationAdmin
    properties:
        applicationId: string
        environmentId: string
    

    EnvironmentApplicationAdmin 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 EnvironmentApplicationAdmin resource accepts the following input properties:

    ApplicationId string
    The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
    EnvironmentId string
    The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
    ApplicationId string
    The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
    EnvironmentId string
    The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
    application_id string
    The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
    environment_id string
    The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
    applicationId String
    The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
    environmentId String
    The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
    applicationId string
    The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
    environmentId string
    The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
    application_id str
    The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
    environment_id str
    The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.
    applicationId String
    The GUID of the service principal (application) to add as System Administrator. Immutable after creation.
    environmentId String
    The GUID of the Power Platform environment. Must have a Dataverse instance. Immutable after creation.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    SystemUserId string
    The Dataverse systemuser record GUID for the registered application user.
    Id string
    The provider-assigned unique ID for this managed resource.
    SystemUserId string
    The Dataverse systemuser record GUID for the registered application user.
    id string
    The provider-assigned unique ID for this managed resource.
    system_user_id string
    The Dataverse systemuser record GUID for the registered application user.
    id String
    The provider-assigned unique ID for this managed resource.
    systemUserId String
    The Dataverse systemuser record GUID for the registered application user.
    id string
    The provider-assigned unique ID for this managed resource.
    systemUserId string
    The Dataverse systemuser record GUID for the registered application user.
    id str
    The provider-assigned unique ID for this managed resource.
    system_user_id str
    The Dataverse systemuser record GUID for the registered application user.
    id String
    The provider-assigned unique ID for this managed resource.
    systemUserId String
    The Dataverse systemuser record GUID for the registered application user.

    Package Details

    Repository
    powerplatform rpothin/pulumi-powerplatform
    License
    MIT
    powerplatform logo
    Viewing docs for Power Platform v0.3.3
    published on Monday, May 18, 2026 by rpothin

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial