published on Thursday, Nov 19, 2026 by Pulumi
published on Thursday, Nov 19, 2026 by Pulumi
Sets the default role of a Pulumi Cloud organization: the role that members without an explicit role follow, and that new members receive. Set either role, for a built-in role, or roleId, for a custom role. An organization always has a default role and Pulumi Cloud has no call to clear it, so destroying this resource leaves the current default role in place. At most one OrganizationDefaultRole should manage an organization.
Create OrganizationDefaultRole Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationDefaultRole(name: string, args: OrganizationDefaultRoleArgs, opts?: CustomResourceOptions);@overload
def OrganizationDefaultRole(resource_name: str,
args: OrganizationDefaultRoleArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationDefaultRole(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_name: Optional[str] = None,
role: Optional[str] = None,
role_id: Optional[str] = None)func NewOrganizationDefaultRole(ctx *Context, name string, args OrganizationDefaultRoleArgs, opts ...ResourceOption) (*OrganizationDefaultRole, error)public OrganizationDefaultRole(string name, OrganizationDefaultRoleArgs args, CustomResourceOptions? opts = null)
public OrganizationDefaultRole(String name, OrganizationDefaultRoleArgs args)
public OrganizationDefaultRole(String name, OrganizationDefaultRoleArgs args, CustomResourceOptions options)
type: pulumiservice:OrganizationDefaultRole
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "pulumiservice_organization_default_role" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args OrganizationDefaultRoleArgs
- 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 OrganizationDefaultRoleArgs
- 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 OrganizationDefaultRoleArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationDefaultRoleArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationDefaultRoleArgs
- 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 organizationDefaultRoleResource = new PulumiService.OrganizationDefaultRole("organizationDefaultRoleResource", new()
{
OrganizationName = "string",
Role = "string",
RoleId = "string",
});
example, err := pulumiservice.NewOrganizationDefaultRole(ctx, "organizationDefaultRoleResource", &pulumiservice.OrganizationDefaultRoleArgs{
OrganizationName: pulumi.String("string"),
Role: pulumi.String("string"),
RoleId: pulumi.String("string"),
})
resource "pulumiservice_organization_default_role" "organizationDefaultRoleResource" {
lifecycle {
create_before_destroy = true
}
organization_name = "string"
role = "string"
role_id = "string"
}
var organizationDefaultRoleResource = new OrganizationDefaultRole("organizationDefaultRoleResource", OrganizationDefaultRoleArgs.builder()
.organizationName("string")
.role("string")
.roleId("string")
.build());
organization_default_role_resource = pulumiservice.OrganizationDefaultRole("organizationDefaultRoleResource",
organization_name="string",
role="string",
role_id="string")
const organizationDefaultRoleResource = new pulumiservice.OrganizationDefaultRole("organizationDefaultRoleResource", {
organizationName: "string",
role: "string",
roleId: "string",
});
type: pulumiservice:OrganizationDefaultRole
properties:
organizationName: string
role: string
roleId: string
OrganizationDefaultRole 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 OrganizationDefaultRole resource accepts the following input properties:
- Organization
Name string - The Pulumi Cloud organization name.
- Role string
- The built-in role to use as the default. One of
reader,builderormaintainer. Exactly one ofroleandroleIdmust be set. - Role
Id string - The ID of a custom role to use as the default. Exactly one of
roleandroleIdmust be set.
- Organization
Name string - The Pulumi Cloud organization name.
- Role string
- The built-in role to use as the default. One of
reader,builderormaintainer. Exactly one ofroleandroleIdmust be set. - Role
Id string - The ID of a custom role to use as the default. Exactly one of
roleandroleIdmust be set.
- organization_
name string - The Pulumi Cloud organization name.
- role string
- The built-in role to use as the default. One of
reader,builderormaintainer. Exactly one ofroleandroleIdmust be set. - role_
id string - The ID of a custom role to use as the default. Exactly one of
roleandroleIdmust be set.
- organization
Name String - The Pulumi Cloud organization name.
- role String
- The built-in role to use as the default. One of
reader,builderormaintainer. Exactly one ofroleandroleIdmust be set. - role
Id String - The ID of a custom role to use as the default. Exactly one of
roleandroleIdmust be set.
- organization
Name string - The Pulumi Cloud organization name.
- role string
- The built-in role to use as the default. One of
reader,builderormaintainer. Exactly one ofroleandroleIdmust be set. - role
Id string - The ID of a custom role to use as the default. Exactly one of
roleandroleIdmust be set.
- organization_
name str - The Pulumi Cloud organization name.
- role str
- The built-in role to use as the default. One of
reader,builderormaintainer. Exactly one ofroleandroleIdmust be set. - role_
id str - The ID of a custom role to use as the default. Exactly one of
roleandroleIdmust be set.
- organization
Name String - The Pulumi Cloud organization name.
- role String
- The built-in role to use as the default. One of
reader,builderormaintainer. Exactly one ofroleandroleIdmust be set. - role
Id String - The ID of a custom role to use as the default. Exactly one of
roleandroleIdmust be set.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationDefaultRole resource produces the following output properties:
Look up Existing OrganizationDefaultRole Resource
Get an existing OrganizationDefaultRole 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>, opts?: CustomResourceOptions): OrganizationDefaultRole@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> OrganizationDefaultRolefunc GetOrganizationDefaultRole(ctx *Context, name string, id IDInput, state *OrganizationDefaultRoleState, opts ...ResourceOption) (*OrganizationDefaultRole, error)public static OrganizationDefaultRole Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static OrganizationDefaultRole get(String name, Output<String> id, CustomResourceOptions options)resources: existingOrganizationDefaultRole: type: pulumiservice:OrganizationDefaultRole get: id: ${id}import {
to = pulumiservice_organization_default_role.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state OrganizationDefaultRoleState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Import
This resource can be imported using its id, which has the format {organization}, e.g.,
$ pulumi import pulumiservice:index:OrganizationDefaultRole my-organization-default-role my-org
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
published on Thursday, Nov 19, 2026 by Pulumi