This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
Manages a user’s membership in a Pulumi Cloud organization and their assigned role. The user must already have a Pulumi Cloud account before they can be added. Custom (fine-grained) roles are assigned by setting roleId; built-in roles are assigned by setting role. When both are set, roleId takes precedence.
Create OrganizationMember Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrganizationMember(name: string, args: OrganizationMemberArgs, opts?: CustomResourceOptions);@overload
def OrganizationMember(resource_name: str,
args: OrganizationMemberArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OrganizationMember(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_name: Optional[str] = None,
username: Optional[str] = None,
role: Optional[str] = None,
role_id: Optional[str] = None)func NewOrganizationMember(ctx *Context, name string, args OrganizationMemberArgs, opts ...ResourceOption) (*OrganizationMember, error)public OrganizationMember(string name, OrganizationMemberArgs args, CustomResourceOptions? opts = null)
public OrganizationMember(String name, OrganizationMemberArgs args)
public OrganizationMember(String name, OrganizationMemberArgs args, CustomResourceOptions options)
type: pulumiservice:OrganizationMember
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OrganizationMemberArgs
- 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 OrganizationMemberArgs
- 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 OrganizationMemberArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrganizationMemberArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrganizationMemberArgs
- 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 organizationMemberResource = new PulumiService.OrganizationMember("organizationMemberResource", new()
{
OrganizationName = "string",
Username = "string",
Role = "string",
RoleId = "string",
});
example, err := pulumiservice.NewOrganizationMember(ctx, "organizationMemberResource", &pulumiservice.OrganizationMemberArgs{
OrganizationName: pulumi.String("string"),
Username: pulumi.String("string"),
Role: pulumi.String("string"),
RoleId: pulumi.String("string"),
})
var organizationMemberResource = new OrganizationMember("organizationMemberResource", OrganizationMemberArgs.builder()
.organizationName("string")
.username("string")
.role("string")
.roleId("string")
.build());
organization_member_resource = pulumiservice.OrganizationMember("organizationMemberResource",
organization_name="string",
username="string",
role="string",
role_id="string")
const organizationMemberResource = new pulumiservice.OrganizationMember("organizationMemberResource", {
organizationName: "string",
username: "string",
role: "string",
roleId: "string",
});
type: pulumiservice:OrganizationMember
properties:
organizationName: string
role: string
roleId: string
username: string
OrganizationMember 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 OrganizationMember resource accepts the following input properties:
- Organization
Name string - The Pulumi Cloud organization name.
- Username string
- The Pulumi Cloud username of the member.
- Role string
- The built-in organization role. One of
member,admin,billing-manager. Defaults tomemberon create. Ignored whenroleIdis set. - Role
Id string - The ID of a custom (fine-grained) organization role to assign. Takes precedence over
role.
- Organization
Name string - The Pulumi Cloud organization name.
- Username string
- The Pulumi Cloud username of the member.
- Role string
- The built-in organization role. One of
member,admin,billing-manager. Defaults tomemberon create. Ignored whenroleIdis set. - Role
Id string - The ID of a custom (fine-grained) organization role to assign. Takes precedence over
role.
- organization
Name String - The Pulumi Cloud organization name.
- username String
- The Pulumi Cloud username of the member.
- role String
- The built-in organization role. One of
member,admin,billing-manager. Defaults tomemberon create. Ignored whenroleIdis set. - role
Id String - The ID of a custom (fine-grained) organization role to assign. Takes precedence over
role.
- organization
Name string - The Pulumi Cloud organization name.
- username string
- The Pulumi Cloud username of the member.
- role string
- The built-in organization role. One of
member,admin,billing-manager. Defaults tomemberon create. Ignored whenroleIdis set. - role
Id string - The ID of a custom (fine-grained) organization role to assign. Takes precedence over
role.
- organization_
name str - The Pulumi Cloud organization name.
- username str
- The Pulumi Cloud username of the member.
- role str
- The built-in organization role. One of
member,admin,billing-manager. Defaults tomemberon create. Ignored whenroleIdis set. - role_
id str - The ID of a custom (fine-grained) organization role to assign. Takes precedence over
role.
- organization
Name String - The Pulumi Cloud organization name.
- username String
- The Pulumi Cloud username of the member.
- role String
- The built-in organization role. One of
member,admin,billing-manager. Defaults tomemberon create. Ignored whenroleIdis set. - role
Id String - The ID of a custom (fine-grained) organization role to assign. Takes precedence over
role.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrganizationMember resource produces the following output properties:
- Adopted bool
- True when this resource adopted an existing organization member (the user was already in the org at Create time). Adopted memberships are left in place on destroy; only the role is reset.
- Email string
- The member's email address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The member's display name.
- Role
Name string - The name of the currently assigned role (custom role name, or built-in role).
- Adopted bool
- True when this resource adopted an existing organization member (the user was already in the org at Create time). Adopted memberships are left in place on destroy; only the role is reset.
- Email string
- The member's email address.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The member's display name.
- Role
Name string - The name of the currently assigned role (custom role name, or built-in role).
- adopted Boolean
- True when this resource adopted an existing organization member (the user was already in the org at Create time). Adopted memberships are left in place on destroy; only the role is reset.
- email String
- The member's email address.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The member's display name.
- role
Name String - The name of the currently assigned role (custom role name, or built-in role).
- adopted boolean
- True when this resource adopted an existing organization member (the user was already in the org at Create time). Adopted memberships are left in place on destroy; only the role is reset.
- email string
- The member's email address.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The member's display name.
- role
Name string - The name of the currently assigned role (custom role name, or built-in role).
- adopted bool
- True when this resource adopted an existing organization member (the user was already in the org at Create time). Adopted memberships are left in place on destroy; only the role is reset.
- email str
- The member's email address.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The member's display name.
- role_
name str - The name of the currently assigned role (custom role name, or built-in role).
- adopted Boolean
- True when this resource adopted an existing organization member (the user was already in the org at Create time). Adopted memberships are left in place on destroy; only the role is reset.
- email String
- The member's email address.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The member's display name.
- role
Name String - The name of the currently assigned role (custom role name, or built-in role).
Package Details
- Repository
- pulumiservice pulumi/pulumi-pulumiservice
- License
- Apache-2.0
This provider is currently in preview.
published on Tuesday, Apr 28, 2026 by Pulumi
