1. Packages
  2. Lacework Provider
  3. API Docs
  4. TeamMember
lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework

lacework.TeamMember

Explore with Pulumi AI

Team members can be granted access to multiple Lacework accounts and have different roles for each account. Team members can also be granted organization-level roles.

Lacework supports the following account roles:

  • Administrator Role - Full access to all functionalities
  • User Role - View only and no access to API keys

Lacework supports the following organization roles:

  • Org Administrator Role - The member has admin privileges for organization settings and admin privileges for all accounts within the organization
  • Org User Role - The member has user privileges for organization settings and user privileges for all accounts within the organization

For more information, see the Team Members documentation.

Example Usage

Standalone Account

Team member that has User Role access into a Lacework standalone account.

import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";

const harry = new lacework.TeamMember("harry", {
    email: "harry@hogwarts.io",
    firstName: "Harry",
    lastName: "Potter",
});
Copy
import pulumi
import pulumi_lacework as lacework

harry = lacework.TeamMember("harry",
    email="harry@hogwarts.io",
    first_name="Harry",
    last_name="Potter")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lacework.NewTeamMember(ctx, "harry", &lacework.TeamMemberArgs{
			Email:     pulumi.String("harry@hogwarts.io"),
			FirstName: pulumi.String("Harry"),
			LastName:  pulumi.String("Potter"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;

return await Deployment.RunAsync(() => 
{
    var harry = new Lacework.TeamMember("harry", new()
    {
        Email = "harry@hogwarts.io",
        FirstName = "Harry",
        LastName = "Potter",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.TeamMember;
import com.pulumi.lacework.TeamMemberArgs;
import java.util.List;
import java.util.ArrayList;
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 harry = new TeamMember("harry", TeamMemberArgs.builder()
            .email("harry@hogwarts.io")
            .firstName("Harry")
            .lastName("Potter")
            .build());

    }
}
Copy
resources:
  harry:
    type: lacework:TeamMember
    properties:
      email: harry@hogwarts.io
      firstName: Harry
      lastName: Potter
Copy

Team member with Administrator Role access.

import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";

const hermione = new lacework.TeamMember("hermione", {
    administrator: true,
    email: "hermione@hogwarts.io",
    firstName: "Hermione",
    lastName: "Granger",
});
Copy
import pulumi
import pulumi_lacework as lacework

hermione = lacework.TeamMember("hermione",
    administrator=True,
    email="hermione@hogwarts.io",
    first_name="Hermione",
    last_name="Granger")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lacework.NewTeamMember(ctx, "hermione", &lacework.TeamMemberArgs{
			Administrator: pulumi.Bool(true),
			Email:         pulumi.String("hermione@hogwarts.io"),
			FirstName:     pulumi.String("Hermione"),
			LastName:      pulumi.String("Granger"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;

return await Deployment.RunAsync(() => 
{
    var hermione = new Lacework.TeamMember("hermione", new()
    {
        Administrator = true,
        Email = "hermione@hogwarts.io",
        FirstName = "Hermione",
        LastName = "Granger",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.TeamMember;
import com.pulumi.lacework.TeamMemberArgs;
import java.util.List;
import java.util.ArrayList;
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 hermione = new TeamMember("hermione", TeamMemberArgs.builder()
            .administrator(true)
            .email("hermione@hogwarts.io")
            .firstName("Hermione")
            .lastName("Granger")
            .build());

    }
}
Copy
resources:
  hermione:
    type: lacework:TeamMember
    properties:
      administrator: true
      email: hermione@hogwarts.io
      firstName: Hermione
      lastName: Granger
Copy

Organizational Account

To manage team members at the organization-level you need to define a Lacework provider with the organization argument set to true.

import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";

const org = new lacework.Provider("org", {organization: true});
Copy
import pulumi
import pulumi_lacework as lacework

org = lacework.Provider("org", organization=True)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lacework.NewProvider(ctx, "org", &lacework.ProviderArgs{
			Organization: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;

return await Deployment.RunAsync(() => 
{
    var org = new Lacework.Provider("org", new()
    {
        Organization = true,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.Provider;
import com.pulumi.lacework.ProviderArgs;
import java.util.List;
import java.util.ArrayList;
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 org = new Provider("org", ProviderArgs.builder()
            .organization(true)
            .build());

    }
}
Copy
resources:
  org:
    type: pulumi:providers:lacework
    properties:
      organization: true
Copy

Team member that has User Role access for all accounts within the Lacework organization.

import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";

const ron = new lacework.TeamMember("ron", {
    firstName: "Ron",
    lastName: "Weasley",
    email: "ron@hogwarts.io",
    organization: {
        user: true,
    },
}, {
    provider: lacework.org,
});
Copy
import pulumi
import pulumi_lacework as lacework

ron = lacework.TeamMember("ron",
    first_name="Ron",
    last_name="Weasley",
    email="ron@hogwarts.io",
    organization={
        "user": True,
    },
    opts = pulumi.ResourceOptions(provider=lacework["org"]))
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lacework.NewTeamMember(ctx, "ron", &lacework.TeamMemberArgs{
			FirstName: pulumi.String("Ron"),
			LastName:  pulumi.String("Weasley"),
			Email:     pulumi.String("ron@hogwarts.io"),
			Organization: &lacework.TeamMemberOrganizationArgs{
				User: pulumi.Bool(true),
			},
		}, pulumi.Provider(lacework.Org))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;

return await Deployment.RunAsync(() => 
{
    var ron = new Lacework.TeamMember("ron", new()
    {
        FirstName = "Ron",
        LastName = "Weasley",
        Email = "ron@hogwarts.io",
        Organization = new Lacework.Inputs.TeamMemberOrganizationArgs
        {
            User = true,
        },
    }, new CustomResourceOptions
    {
        Provider = lacework.Org,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.TeamMember;
import com.pulumi.lacework.TeamMemberArgs;
import com.pulumi.lacework.inputs.TeamMemberOrganizationArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
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 ron = new TeamMember("ron", TeamMemberArgs.builder()
            .firstName("Ron")
            .lastName("Weasley")
            .email("ron@hogwarts.io")
            .organization(TeamMemberOrganizationArgs.builder()
                .user(true)
                .build())
            .build(), CustomResourceOptions.builder()
                .provider(lacework.org())
                .build());

    }
}
Copy
resources:
  ron:
    type: lacework:TeamMember
    properties:
      firstName: Ron
      lastName: Weasley
      email: ron@hogwarts.io
      organization:
        user: true
    options:
      provider: ${lacework.org}
Copy

Team member with Administrator privileges for all accounts within the organization.

import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";

const albus = new lacework.TeamMember("albus", {
    firstName: "Albus",
    lastName: "Dumbledore",
    email: "albus@hogwarts.io",
    organization: {
        administrator: true,
    },
}, {
    provider: lacework.org,
});
Copy
import pulumi
import pulumi_lacework as lacework

albus = lacework.TeamMember("albus",
    first_name="Albus",
    last_name="Dumbledore",
    email="albus@hogwarts.io",
    organization={
        "administrator": True,
    },
    opts = pulumi.ResourceOptions(provider=lacework["org"]))
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lacework.NewTeamMember(ctx, "albus", &lacework.TeamMemberArgs{
			FirstName: pulumi.String("Albus"),
			LastName:  pulumi.String("Dumbledore"),
			Email:     pulumi.String("albus@hogwarts.io"),
			Organization: &lacework.TeamMemberOrganizationArgs{
				Administrator: pulumi.Bool(true),
			},
		}, pulumi.Provider(lacework.Org))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;

return await Deployment.RunAsync(() => 
{
    var albus = new Lacework.TeamMember("albus", new()
    {
        FirstName = "Albus",
        LastName = "Dumbledore",
        Email = "albus@hogwarts.io",
        Organization = new Lacework.Inputs.TeamMemberOrganizationArgs
        {
            Administrator = true,
        },
    }, new CustomResourceOptions
    {
        Provider = lacework.Org,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.TeamMember;
import com.pulumi.lacework.TeamMemberArgs;
import com.pulumi.lacework.inputs.TeamMemberOrganizationArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
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 albus = new TeamMember("albus", TeamMemberArgs.builder()
            .firstName("Albus")
            .lastName("Dumbledore")
            .email("albus@hogwarts.io")
            .organization(TeamMemberOrganizationArgs.builder()
                .administrator(true)
                .build())
            .build(), CustomResourceOptions.builder()
                .provider(lacework.org())
                .build());

    }
}
Copy
resources:
  albus:
    type: lacework:TeamMember
    properties:
      firstName: Albus
      lastName: Dumbledore
      email: albus@hogwarts.io
      organization:
        administrator: true
    options:
      provider: ${lacework.org}
Copy

Team Member that has access to multiple accounts within a Lacework organization. The member is an administrator for SLYTHERIN account, and a regular user for HUFFLEPUFF, RAVENCLAW, and GRYFFINDOR.

import * as pulumi from "@pulumi/pulumi";
import * as lacework from "@pulumi/lacework";

const severus = new lacework.TeamMember("severus", {
    firstName: "Severus",
    lastName: "Snape",
    email: "severus@hogwarts.io",
    organization: {
        adminAccounts: ["SLYTHERIN"],
        userAccounts: [
            "HUFFLEPUFF",
            "RAVENCLAW",
            "GRYFFINDOR",
        ],
    },
}, {
    provider: lacework.org,
});
Copy
import pulumi
import pulumi_lacework as lacework

severus = lacework.TeamMember("severus",
    first_name="Severus",
    last_name="Snape",
    email="severus@hogwarts.io",
    organization={
        "admin_accounts": ["SLYTHERIN"],
        "user_accounts": [
            "HUFFLEPUFF",
            "RAVENCLAW",
            "GRYFFINDOR",
        ],
    },
    opts = pulumi.ResourceOptions(provider=lacework["org"]))
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/lacework/v2/lacework"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := lacework.NewTeamMember(ctx, "severus", &lacework.TeamMemberArgs{
			FirstName: pulumi.String("Severus"),
			LastName:  pulumi.String("Snape"),
			Email:     pulumi.String("severus@hogwarts.io"),
			Organization: &lacework.TeamMemberOrganizationArgs{
				AdminAccounts: pulumi.StringArray{
					pulumi.String("SLYTHERIN"),
				},
				UserAccounts: pulumi.StringArray{
					pulumi.String("HUFFLEPUFF"),
					pulumi.String("RAVENCLAW"),
					pulumi.String("GRYFFINDOR"),
				},
			},
		}, pulumi.Provider(lacework.Org))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;

return await Deployment.RunAsync(() => 
{
    var severus = new Lacework.TeamMember("severus", new()
    {
        FirstName = "Severus",
        LastName = "Snape",
        Email = "severus@hogwarts.io",
        Organization = new Lacework.Inputs.TeamMemberOrganizationArgs
        {
            AdminAccounts = new[]
            {
                "SLYTHERIN",
            },
            UserAccounts = new[]
            {
                "HUFFLEPUFF",
                "RAVENCLAW",
                "GRYFFINDOR",
            },
        },
    }, new CustomResourceOptions
    {
        Provider = lacework.Org,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.TeamMember;
import com.pulumi.lacework.TeamMemberArgs;
import com.pulumi.lacework.inputs.TeamMemberOrganizationArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
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 severus = new TeamMember("severus", TeamMemberArgs.builder()
            .firstName("Severus")
            .lastName("Snape")
            .email("severus@hogwarts.io")
            .organization(TeamMemberOrganizationArgs.builder()
                .adminAccounts("SLYTHERIN")
                .userAccounts(                
                    "HUFFLEPUFF",
                    "RAVENCLAW",
                    "GRYFFINDOR")
                .build())
            .build(), CustomResourceOptions.builder()
                .provider(lacework.org())
                .build());

    }
}
Copy
resources:
  severus:
    type: lacework:TeamMember
    properties:
      firstName: Severus
      lastName: Snape
      email: severus@hogwarts.io
      organization:
        adminAccounts:
          - SLYTHERIN
        userAccounts:
          - HUFFLEPUFF
          - RAVENCLAW
          - GRYFFINDOR
    options:
      provider: ${lacework.org}
Copy

Create TeamMember Resource

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

Constructor syntax

new TeamMember(name: string, args: TeamMemberArgs, opts?: CustomResourceOptions);
@overload
def TeamMember(resource_name: str,
               args: TeamMemberArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def TeamMember(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               company: Optional[str] = None,
               email: Optional[str] = None,
               first_name: Optional[str] = None,
               last_name: Optional[str] = None,
               administrator: Optional[bool] = None,
               enabled: Optional[bool] = None,
               organization: Optional[TeamMemberOrganizationArgs] = None,
               team_member_id: Optional[str] = None)
func NewTeamMember(ctx *Context, name string, args TeamMemberArgs, opts ...ResourceOption) (*TeamMember, error)
public TeamMember(string name, TeamMemberArgs args, CustomResourceOptions? opts = null)
public TeamMember(String name, TeamMemberArgs args)
public TeamMember(String name, TeamMemberArgs args, CustomResourceOptions options)
type: lacework:TeamMember
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. TeamMemberArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. TeamMemberArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. TeamMemberArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. TeamMemberArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. TeamMemberArgs
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 teamMemberResource = new Lacework.TeamMember("teamMemberResource", new()
{
    Company = "string",
    Email = "string",
    FirstName = "string",
    LastName = "string",
    Administrator = false,
    Enabled = false,
    Organization = new Lacework.Inputs.TeamMemberOrganizationArgs
    {
        AdminAccounts = new[]
        {
            "string",
        },
        Administrator = false,
        User = false,
        UserAccounts = new[]
        {
            "string",
        },
    },
    TeamMemberId = "string",
});
Copy
example, err := lacework.NewTeamMember(ctx, "teamMemberResource", &lacework.TeamMemberArgs{
Company: pulumi.String("string"),
Email: pulumi.String("string"),
FirstName: pulumi.String("string"),
LastName: pulumi.String("string"),
Administrator: pulumi.Bool(false),
Enabled: pulumi.Bool(false),
Organization: &.TeamMemberOrganizationArgs{
AdminAccounts: pulumi.StringArray{
pulumi.String("string"),
},
Administrator: pulumi.Bool(false),
User: pulumi.Bool(false),
UserAccounts: pulumi.StringArray{
pulumi.String("string"),
},
},
TeamMemberId: pulumi.String("string"),
})
Copy
var teamMemberResource = new TeamMember("teamMemberResource", TeamMemberArgs.builder()
    .company("string")
    .email("string")
    .firstName("string")
    .lastName("string")
    .administrator(false)
    .enabled(false)
    .organization(TeamMemberOrganizationArgs.builder()
        .adminAccounts("string")
        .administrator(false)
        .user(false)
        .userAccounts("string")
        .build())
    .teamMemberId("string")
    .build());
Copy
team_member_resource = lacework.TeamMember("teamMemberResource",
    company="string",
    email="string",
    first_name="string",
    last_name="string",
    administrator=False,
    enabled=False,
    organization={
        "admin_accounts": ["string"],
        "administrator": False,
        "user": False,
        "user_accounts": ["string"],
    },
    team_member_id="string")
Copy
const teamMemberResource = new lacework.TeamMember("teamMemberResource", {
    company: "string",
    email: "string",
    firstName: "string",
    lastName: "string",
    administrator: false,
    enabled: false,
    organization: {
        adminAccounts: ["string"],
        administrator: false,
        user: false,
        userAccounts: ["string"],
    },
    teamMemberId: "string",
});
Copy
type: lacework:TeamMember
properties:
    administrator: false
    company: string
    email: string
    enabled: false
    firstName: string
    lastName: string
    organization:
        adminAccounts:
            - string
        administrator: false
        user: false
        userAccounts:
            - string
    teamMemberId: string
Copy

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

Company This property is required. string
The company name
Email This property is required. string
The team member email address, which will also be used as the username.
FirstName This property is required. string
The team member first name.
LastName This property is required. string
The team member last name.
Administrator bool
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
Enabled bool
The state of the team member. Defaults to true.
Organization TeamMemberOrganization
Use this block to manage organization-level team members. See Organization below for details.
TeamMemberId string
Company This property is required. string
The company name
Email This property is required. string
The team member email address, which will also be used as the username.
FirstName This property is required. string
The team member first name.
LastName This property is required. string
The team member last name.
Administrator bool
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
Enabled bool
The state of the team member. Defaults to true.
Organization TeamMemberOrganizationArgs
Use this block to manage organization-level team members. See Organization below for details.
TeamMemberId string
company This property is required. String
The company name
email This property is required. String
The team member email address, which will also be used as the username.
firstName This property is required. String
The team member first name.
lastName This property is required. String
The team member last name.
administrator Boolean
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
enabled Boolean
The state of the team member. Defaults to true.
organization TeamMemberOrganization
Use this block to manage organization-level team members. See Organization below for details.
teamMemberId String
company This property is required. string
The company name
email This property is required. string
The team member email address, which will also be used as the username.
firstName This property is required. string
The team member first name.
lastName This property is required. string
The team member last name.
administrator boolean
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
enabled boolean
The state of the team member. Defaults to true.
organization TeamMemberOrganization
Use this block to manage organization-level team members. See Organization below for details.
teamMemberId string
company This property is required. str
The company name
email This property is required. str
The team member email address, which will also be used as the username.
first_name This property is required. str
The team member first name.
last_name This property is required. str
The team member last name.
administrator bool
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
enabled bool
The state of the team member. Defaults to true.
organization TeamMemberOrganizationArgs
Use this block to manage organization-level team members. See Organization below for details.
team_member_id str
company This property is required. String
The company name
email This property is required. String
The team member email address, which will also be used as the username.
firstName This property is required. String
The team member first name.
lastName This property is required. String
The team member last name.
administrator Boolean
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
enabled Boolean
The state of the team member. Defaults to true.
organization Property Map
Use this block to manage organization-level team members. See Organization below for details.
teamMemberId String

Outputs

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

CreatedTime string
Guid string
Id string
The provider-assigned unique ID for this managed resource.
UpdatedBy string
UpdatedTime string
CreatedTime string
Guid string
Id string
The provider-assigned unique ID for this managed resource.
UpdatedBy string
UpdatedTime string
createdTime String
guid String
id String
The provider-assigned unique ID for this managed resource.
updatedBy String
updatedTime String
createdTime string
guid string
id string
The provider-assigned unique ID for this managed resource.
updatedBy string
updatedTime string
created_time str
guid str
id str
The provider-assigned unique ID for this managed resource.
updated_by str
updated_time str
createdTime String
guid String
id String
The provider-assigned unique ID for this managed resource.
updatedBy String
updatedTime String

Look up Existing TeamMember Resource

Get an existing TeamMember 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?: TeamMemberState, opts?: CustomResourceOptions): TeamMember
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        administrator: Optional[bool] = None,
        company: Optional[str] = None,
        created_time: Optional[str] = None,
        email: Optional[str] = None,
        enabled: Optional[bool] = None,
        first_name: Optional[str] = None,
        guid: Optional[str] = None,
        last_name: Optional[str] = None,
        organization: Optional[TeamMemberOrganizationArgs] = None,
        team_member_id: Optional[str] = None,
        updated_by: Optional[str] = None,
        updated_time: Optional[str] = None) -> TeamMember
func GetTeamMember(ctx *Context, name string, id IDInput, state *TeamMemberState, opts ...ResourceOption) (*TeamMember, error)
public static TeamMember Get(string name, Input<string> id, TeamMemberState? state, CustomResourceOptions? opts = null)
public static TeamMember get(String name, Output<String> id, TeamMemberState state, CustomResourceOptions options)
resources:  _:    type: lacework:TeamMember    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
Administrator bool
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
Company string
The company name
CreatedTime string
Email string
The team member email address, which will also be used as the username.
Enabled bool
The state of the team member. Defaults to true.
FirstName string
The team member first name.
Guid string
LastName string
The team member last name.
Organization TeamMemberOrganization
Use this block to manage organization-level team members. See Organization below for details.
TeamMemberId string
UpdatedBy string
UpdatedTime string
Administrator bool
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
Company string
The company name
CreatedTime string
Email string
The team member email address, which will also be used as the username.
Enabled bool
The state of the team member. Defaults to true.
FirstName string
The team member first name.
Guid string
LastName string
The team member last name.
Organization TeamMemberOrganizationArgs
Use this block to manage organization-level team members. See Organization below for details.
TeamMemberId string
UpdatedBy string
UpdatedTime string
administrator Boolean
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
company String
The company name
createdTime String
email String
The team member email address, which will also be used as the username.
enabled Boolean
The state of the team member. Defaults to true.
firstName String
The team member first name.
guid String
lastName String
The team member last name.
organization TeamMemberOrganization
Use this block to manage organization-level team members. See Organization below for details.
teamMemberId String
updatedBy String
updatedTime String
administrator boolean
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
company string
The company name
createdTime string
email string
The team member email address, which will also be used as the username.
enabled boolean
The state of the team member. Defaults to true.
firstName string
The team member first name.
guid string
lastName string
The team member last name.
organization TeamMemberOrganization
Use this block to manage organization-level team members. See Organization below for details.
teamMemberId string
updatedBy string
updatedTime string
administrator bool
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
company str
The company name
created_time str
email str
The team member email address, which will also be used as the username.
enabled bool
The state of the team member. Defaults to true.
first_name str
The team member first name.
guid str
last_name str
The team member last name.
organization TeamMemberOrganizationArgs
Use this block to manage organization-level team members. See Organization below for details.
team_member_id str
updated_by str
updated_time str
administrator Boolean
Set to true to make the team member an administrator, otherwise the member will be a regular user. Defaults to false.
company String
The company name
createdTime String
email String
The team member email address, which will also be used as the username.
enabled Boolean
The state of the team member. Defaults to true.
firstName String
The team member first name.
guid String
lastName String
The team member last name.
organization Property Map
Use this block to manage organization-level team members. See Organization below for details.
teamMemberId String
updatedBy String
updatedTime String

Supporting Types

TeamMemberOrganization
, TeamMemberOrganizationArgs

AdminAccounts List<string>
List of accounts the team member is an administrator.
Administrator bool
Whether the team member is an organization-level administrator. Defaults to false.
User bool
Whether the team member is an organization-level user. Defaults to false.
UserAccounts List<string>
List of accounts the team member is a user.
AdminAccounts []string
List of accounts the team member is an administrator.
Administrator bool
Whether the team member is an organization-level administrator. Defaults to false.
User bool
Whether the team member is an organization-level user. Defaults to false.
UserAccounts []string
List of accounts the team member is a user.
adminAccounts List<String>
List of accounts the team member is an administrator.
administrator Boolean
Whether the team member is an organization-level administrator. Defaults to false.
user Boolean
Whether the team member is an organization-level user. Defaults to false.
userAccounts List<String>
List of accounts the team member is a user.
adminAccounts string[]
List of accounts the team member is an administrator.
administrator boolean
Whether the team member is an organization-level administrator. Defaults to false.
user boolean
Whether the team member is an organization-level user. Defaults to false.
userAccounts string[]
List of accounts the team member is a user.
admin_accounts Sequence[str]
List of accounts the team member is an administrator.
administrator bool
Whether the team member is an organization-level administrator. Defaults to false.
user bool
Whether the team member is an organization-level user. Defaults to false.
user_accounts Sequence[str]
List of accounts the team member is a user.
adminAccounts List<String>
List of accounts the team member is an administrator.
administrator Boolean
Whether the team member is an organization-level administrator. Defaults to false.
user Boolean
Whether the team member is an organization-level user. Defaults to false.
userAccounts List<String>
List of accounts the team member is a user.

Import

Import Organizational Team Member

A Lacework organization-level team member can be imported using the email, e.g.

$ pulumi import lacework:index/teamMember:TeamMember albus albus@hogwarts.io
Copy

use the Lacework CLI command lacework team-member list. To install this tool follow

this documentation.

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

Package Details

Repository
lacework lacework/terraform-provider-lacework
License
Notes
This Pulumi package is based on the lacework Terraform Provider.