1. Registry
  2. Packages
  3. Pulumi Cloud (Pulumi Service provider)
  4. API Docs
  5. OrganizationMemberEntityAccess
Viewing docs for Pulumi Cloud v1.7.0
published on Tuesday, Nov 3, 2026 by Pulumi
pulumiservice logo pulumiservice logo
Viewing docs for Pulumi Cloud v1.7.0
published on Tuesday, Nov 3, 2026 by Pulumi

    Grants one organization member a permission set on one stack, environment or Insights account, as in the entity access section of the Pulumi Cloud console. See the entity access docs. Each resource manages the grant of one member on one entity. Other grants of the member, and grants of other members on the same entity, are not touched, and destroying the resource removes only this grant. Set either permission, for a built-in permission set, or permissionSetId, for a custom one.

    Create OrganizationMemberEntityAccess Resource

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

    Constructor syntax

    new OrganizationMemberEntityAccess(name: string, args: OrganizationMemberEntityAccessArgs, opts?: CustomResourceOptions);
    @overload
    def OrganizationMemberEntityAccess(resource_name: str,
                                       args: OrganizationMemberEntityAccessArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrganizationMemberEntityAccess(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       entity_name: Optional[str] = None,
                                       entity_type: Optional[str] = None,
                                       organization_name: Optional[str] = None,
                                       username: Optional[str] = None,
                                       permission: Optional[str] = None,
                                       permission_set_id: Optional[str] = None)
    func NewOrganizationMemberEntityAccess(ctx *Context, name string, args OrganizationMemberEntityAccessArgs, opts ...ResourceOption) (*OrganizationMemberEntityAccess, error)
    public OrganizationMemberEntityAccess(string name, OrganizationMemberEntityAccessArgs args, CustomResourceOptions? opts = null)
    public OrganizationMemberEntityAccess(String name, OrganizationMemberEntityAccessArgs args)
    public OrganizationMemberEntityAccess(String name, OrganizationMemberEntityAccessArgs args, CustomResourceOptions options)
    
    type: pulumiservice:OrganizationMemberEntityAccess
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "pulumiservice_organization_member_entity_access" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args OrganizationMemberEntityAccessArgs
    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 OrganizationMemberEntityAccessArgs
    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 OrganizationMemberEntityAccessArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrganizationMemberEntityAccessArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrganizationMemberEntityAccessArgs
    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 organizationMemberEntityAccessResource = new PulumiService.OrganizationMemberEntityAccess("organizationMemberEntityAccessResource", new()
    {
        EntityName = "string",
        EntityType = "string",
        OrganizationName = "string",
        Username = "string",
        Permission = "string",
        PermissionSetId = "string",
    });
    
    example, err := pulumiservice.NewOrganizationMemberEntityAccess(ctx, "organizationMemberEntityAccessResource", &pulumiservice.OrganizationMemberEntityAccessArgs{
    	EntityName:       pulumi.String("string"),
    	EntityType:       pulumi.String("string"),
    	OrganizationName: pulumi.String("string"),
    	Username:         pulumi.String("string"),
    	Permission:       pulumi.String("string"),
    	PermissionSetId:  pulumi.String("string"),
    })
    
    resource "pulumiservice_organization_member_entity_access" "organizationMemberEntityAccessResource" {
      lifecycle {
        create_before_destroy = true
      }
      entity_name       = "string"
      entity_type       = "string"
      organization_name = "string"
      username          = "string"
      permission        = "string"
      permission_set_id = "string"
    }
    
    var organizationMemberEntityAccessResource = new OrganizationMemberEntityAccess("organizationMemberEntityAccessResource", OrganizationMemberEntityAccessArgs.builder()
        .entityName("string")
        .entityType("string")
        .organizationName("string")
        .username("string")
        .permission("string")
        .permissionSetId("string")
        .build());
    
    organization_member_entity_access_resource = pulumiservice.OrganizationMemberEntityAccess("organizationMemberEntityAccessResource",
        entity_name="string",
        entity_type="string",
        organization_name="string",
        username="string",
        permission="string",
        permission_set_id="string")
    
    const organizationMemberEntityAccessResource = new pulumiservice.OrganizationMemberEntityAccess("organizationMemberEntityAccessResource", {
        entityName: "string",
        entityType: "string",
        organizationName: "string",
        username: "string",
        permission: "string",
        permissionSetId: "string",
    });
    
    type: pulumiservice:OrganizationMemberEntityAccess
    properties:
        entityName: string
        entityType: string
        organizationName: string
        permission: string
        permissionSetId: string
        username: string
    

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

    EntityName string
    The name of the entity: {project}/{stack} for a stack, {project}/{environment} for an environment, or the account name for an Insights account.
    EntityType string
    The kind of entity to grant access to. One of stack, environment or insightsAccount.
    OrganizationName string
    The Pulumi Cloud organization name.
    Username string
    The Pulumi Cloud username of the organization member.
    Permission string
    The built-in permission set to grant, for example stack-read, stack-write, stack-admin, environment-read, environment-open, environment-write, environment-admin, insights-account-read, insights-account-write or insights-account-admin. Exactly one of permission and permissionSetId must be set.
    PermissionSetId string
    The ID of a custom permission set to grant. Exactly one of permission and permissionSetId must be set.
    EntityName string
    The name of the entity: {project}/{stack} for a stack, {project}/{environment} for an environment, or the account name for an Insights account.
    EntityType string
    The kind of entity to grant access to. One of stack, environment or insightsAccount.
    OrganizationName string
    The Pulumi Cloud organization name.
    Username string
    The Pulumi Cloud username of the organization member.
    Permission string
    The built-in permission set to grant, for example stack-read, stack-write, stack-admin, environment-read, environment-open, environment-write, environment-admin, insights-account-read, insights-account-write or insights-account-admin. Exactly one of permission and permissionSetId must be set.
    PermissionSetId string
    The ID of a custom permission set to grant. Exactly one of permission and permissionSetId must be set.
    entity_name string
    The name of the entity: {project}/{stack} for a stack, {project}/{environment} for an environment, or the account name for an Insights account.
    entity_type string
    The kind of entity to grant access to. One of stack, environment or insightsAccount.
    organization_name string
    The Pulumi Cloud organization name.
    username string
    The Pulumi Cloud username of the organization member.
    permission string
    The built-in permission set to grant, for example stack-read, stack-write, stack-admin, environment-read, environment-open, environment-write, environment-admin, insights-account-read, insights-account-write or insights-account-admin. Exactly one of permission and permissionSetId must be set.
    permission_set_id string
    The ID of a custom permission set to grant. Exactly one of permission and permissionSetId must be set.
    entityName String
    The name of the entity: {project}/{stack} for a stack, {project}/{environment} for an environment, or the account name for an Insights account.
    entityType String
    The kind of entity to grant access to. One of stack, environment or insightsAccount.
    organizationName String
    The Pulumi Cloud organization name.
    username String
    The Pulumi Cloud username of the organization member.
    permission String
    The built-in permission set to grant, for example stack-read, stack-write, stack-admin, environment-read, environment-open, environment-write, environment-admin, insights-account-read, insights-account-write or insights-account-admin. Exactly one of permission and permissionSetId must be set.
    permissionSetId String
    The ID of a custom permission set to grant. Exactly one of permission and permissionSetId must be set.
    entityName string
    The name of the entity: {project}/{stack} for a stack, {project}/{environment} for an environment, or the account name for an Insights account.
    entityType string
    The kind of entity to grant access to. One of stack, environment or insightsAccount.
    organizationName string
    The Pulumi Cloud organization name.
    username string
    The Pulumi Cloud username of the organization member.
    permission string
    The built-in permission set to grant, for example stack-read, stack-write, stack-admin, environment-read, environment-open, environment-write, environment-admin, insights-account-read, insights-account-write or insights-account-admin. Exactly one of permission and permissionSetId must be set.
    permissionSetId string
    The ID of a custom permission set to grant. Exactly one of permission and permissionSetId must be set.
    entity_name str
    The name of the entity: {project}/{stack} for a stack, {project}/{environment} for an environment, or the account name for an Insights account.
    entity_type str
    The kind of entity to grant access to. One of stack, environment or insightsAccount.
    organization_name str
    The Pulumi Cloud organization name.
    username str
    The Pulumi Cloud username of the organization member.
    permission str
    The built-in permission set to grant, for example stack-read, stack-write, stack-admin, environment-read, environment-open, environment-write, environment-admin, insights-account-read, insights-account-write or insights-account-admin. Exactly one of permission and permissionSetId must be set.
    permission_set_id str
    The ID of a custom permission set to grant. Exactly one of permission and permissionSetId must be set.
    entityName String
    The name of the entity: {project}/{stack} for a stack, {project}/{environment} for an environment, or the account name for an Insights account.
    entityType String
    The kind of entity to grant access to. One of stack, environment or insightsAccount.
    organizationName String
    The Pulumi Cloud organization name.
    username String
    The Pulumi Cloud username of the organization member.
    permission String
    The built-in permission set to grant, for example stack-read, stack-write, stack-admin, environment-read, environment-open, environment-write, environment-admin, insights-account-read, insights-account-write or insights-account-admin. Exactly one of permission and permissionSetId must be set.
    permissionSetId String
    The ID of a custom permission set to grant. Exactly one of permission and permissionSetId must be set.

    Outputs

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

    EntityId string
    The ID of the entity Pulumi Cloud stores the grant against.
    Id string
    The provider-assigned unique ID for this managed resource.
    PermissionSetName string
    The display name of the granted permission set.
    EntityId string
    The ID of the entity Pulumi Cloud stores the grant against.
    Id string
    The provider-assigned unique ID for this managed resource.
    PermissionSetName string
    The display name of the granted permission set.
    entity_id string
    The ID of the entity Pulumi Cloud stores the grant against.
    id string
    The provider-assigned unique ID for this managed resource.
    permission_set_name string
    The display name of the granted permission set.
    entityId String
    The ID of the entity Pulumi Cloud stores the grant against.
    id String
    The provider-assigned unique ID for this managed resource.
    permissionSetName String
    The display name of the granted permission set.
    entityId string
    The ID of the entity Pulumi Cloud stores the grant against.
    id string
    The provider-assigned unique ID for this managed resource.
    permissionSetName string
    The display name of the granted permission set.
    entity_id str
    The ID of the entity Pulumi Cloud stores the grant against.
    id str
    The provider-assigned unique ID for this managed resource.
    permission_set_name str
    The display name of the granted permission set.
    entityId String
    The ID of the entity Pulumi Cloud stores the grant against.
    id String
    The provider-assigned unique ID for this managed resource.
    permissionSetName String
    The display name of the granted permission set.

    Import

    This resource can be imported using its id, which has the format {organization}/{username}/{entityType}/{entityName}, e.g.,

     $ pulumi import pulumiservice:index:OrganizationMemberEntityAccess my-organization-member-entity-access my-org/alice/stack/my-project/dev
    

    entityType is stack, environment or insightsAccount. entityName is {project}/{stack}, {project}/{environment} or the account name.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo pulumiservice logo
    Viewing docs for Pulumi Cloud v1.7.0
    published on Tuesday, Nov 3, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial