1. Packages
  2. PagerDuty
  3. API Docs
  4. User
PagerDuty v4.11.4 published on Wednesday, Apr 17, 2024 by Pulumi

pagerduty.User

Explore with Pulumi AI

pagerduty logo
PagerDuty v4.11.4 published on Wednesday, Apr 17, 2024 by Pulumi

    A user is a member of a PagerDuty account that have the ability to interact with incidents and other data on the account.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as pagerduty from "@pulumi/pagerduty";
    
    const example = new pagerduty.User("example", {email: "125.greenholt.earline@graham.name"});
    
    import pulumi
    import pulumi_pagerduty as pagerduty
    
    example = pagerduty.User("example", email="125.greenholt.earline@graham.name")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-pagerduty/sdk/v4/go/pagerduty"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := pagerduty.NewUser(ctx, "example", &pagerduty.UserArgs{
    			Email: pulumi.String("125.greenholt.earline@graham.name"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Pagerduty = Pulumi.Pagerduty;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Pagerduty.User("example", new()
        {
            Email = "125.greenholt.earline@graham.name",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.pagerduty.User;
    import com.pulumi.pagerduty.UserArgs;
    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 example = new User("example", UserArgs.builder()        
                .email("125.greenholt.earline@graham.name")
                .build());
    
        }
    }
    
    resources:
      example:
        type: pagerduty:User
        properties:
          email: 125.greenholt.earline@graham.name
    

    Create User Resource

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

    Constructor syntax

    new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
    @overload
    def User(resource_name: str,
             args: UserArgs,
             opts: Optional[ResourceOptions] = None)
    
    @overload
    def User(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             email: Optional[str] = None,
             color: Optional[str] = None,
             description: Optional[str] = None,
             job_title: Optional[str] = None,
             license: Optional[str] = None,
             name: Optional[str] = None,
             role: Optional[str] = None,
             teams: Optional[Sequence[str]] = None,
             time_zone: Optional[str] = None)
    func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
    public User(string name, UserArgs args, CustomResourceOptions? opts = null)
    public User(String name, UserArgs args)
    public User(String name, UserArgs args, CustomResourceOptions options)
    
    type: pagerduty:User
    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 UserArgs
    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 UserArgs
    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 UserArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UserArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var userResource = new Pagerduty.User("userResource", new()
    {
        Email = "string",
        Color = "string",
        Description = "string",
        JobTitle = "string",
        License = "string",
        Name = "string",
        Role = "string",
        TimeZone = "string",
    });
    
    example, err := pagerduty.NewUser(ctx, "userResource", &pagerduty.UserArgs{
    	Email:       pulumi.String("string"),
    	Color:       pulumi.String("string"),
    	Description: pulumi.String("string"),
    	JobTitle:    pulumi.String("string"),
    	License:     pulumi.String("string"),
    	Name:        pulumi.String("string"),
    	Role:        pulumi.String("string"),
    	TimeZone:    pulumi.String("string"),
    })
    
    var userResource = new User("userResource", UserArgs.builder()        
        .email("string")
        .color("string")
        .description("string")
        .jobTitle("string")
        .license("string")
        .name("string")
        .role("string")
        .timeZone("string")
        .build());
    
    user_resource = pagerduty.User("userResource",
        email="string",
        color="string",
        description="string",
        job_title="string",
        license="string",
        name="string",
        role="string",
        time_zone="string")
    
    const userResource = new pagerduty.User("userResource", {
        email: "string",
        color: "string",
        description: "string",
        jobTitle: "string",
        license: "string",
        name: "string",
        role: "string",
        timeZone: "string",
    });
    
    type: pagerduty:User
    properties:
        color: string
        description: string
        email: string
        jobTitle: string
        license: string
        name: string
        role: string
        timeZone: string
    

    User Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The User resource accepts the following input properties:

    Email string
    The user's email address.
    Color string
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    Description string
    JobTitle string
    The user's title.
    License string
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    Name string
    The name of the user.
    Role string
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    Teams List<string>
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    TimeZone string
    The time zone of the user. Default is account default timezone.
    Email string
    The user's email address.
    Color string
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    Description string
    JobTitle string
    The user's title.
    License string
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    Name string
    The name of the user.
    Role string
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    Teams []string
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    TimeZone string
    The time zone of the user. Default is account default timezone.
    email String
    The user's email address.
    color String
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    description String
    jobTitle String
    The user's title.
    license String
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    name String
    The name of the user.
    role String
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    teams List<String>
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    timeZone String
    The time zone of the user. Default is account default timezone.
    email string
    The user's email address.
    color string
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    description string
    jobTitle string
    The user's title.
    license string
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    name string
    The name of the user.
    role string
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    teams string[]
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    timeZone string
    The time zone of the user. Default is account default timezone.
    email str
    The user's email address.
    color str
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    description str
    job_title str
    The user's title.
    license str
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    name str
    The name of the user.
    role str
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    teams Sequence[str]
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    time_zone str
    The time zone of the user. Default is account default timezone.
    email String
    The user's email address.
    color String
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    description String
    jobTitle String
    The user's title.
    license String
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    name String
    The name of the user.
    role String
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    teams List<String>
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    timeZone String
    The time zone of the user. Default is account default timezone.

    Outputs

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

    AvatarUrl string
    The URL of the user's avatar.
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app
    Id string
    The provider-assigned unique ID for this managed resource.
    InvitationSent bool
    If true, the user has an outstanding invitation.
    AvatarUrl string
    The URL of the user's avatar.
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app
    Id string
    The provider-assigned unique ID for this managed resource.
    InvitationSent bool
    If true, the user has an outstanding invitation.
    avatarUrl String
    The URL of the user's avatar.
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app
    id String
    The provider-assigned unique ID for this managed resource.
    invitationSent Boolean
    If true, the user has an outstanding invitation.
    avatarUrl string
    The URL of the user's avatar.
    htmlUrl string
    URL at which the entity is uniquely displayed in the Web app
    id string
    The provider-assigned unique ID for this managed resource.
    invitationSent boolean
    If true, the user has an outstanding invitation.
    avatar_url str
    The URL of the user's avatar.
    html_url str
    URL at which the entity is uniquely displayed in the Web app
    id str
    The provider-assigned unique ID for this managed resource.
    invitation_sent bool
    If true, the user has an outstanding invitation.
    avatarUrl String
    The URL of the user's avatar.
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app
    id String
    The provider-assigned unique ID for this managed resource.
    invitationSent Boolean
    If true, the user has an outstanding invitation.

    Look up Existing User Resource

    Get an existing User 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?: UserState, opts?: CustomResourceOptions): User
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            avatar_url: Optional[str] = None,
            color: Optional[str] = None,
            description: Optional[str] = None,
            email: Optional[str] = None,
            html_url: Optional[str] = None,
            invitation_sent: Optional[bool] = None,
            job_title: Optional[str] = None,
            license: Optional[str] = None,
            name: Optional[str] = None,
            role: Optional[str] = None,
            teams: Optional[Sequence[str]] = None,
            time_zone: Optional[str] = None) -> User
    func GetUser(ctx *Context, name string, id IDInput, state *UserState, opts ...ResourceOption) (*User, error)
    public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)
    public static User get(String name, Output<String> id, UserState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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:
    AvatarUrl string
    The URL of the user's avatar.
    Color string
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    Description string
    Email string
    The user's email address.
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app
    InvitationSent bool
    If true, the user has an outstanding invitation.
    JobTitle string
    The user's title.
    License string
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    Name string
    The name of the user.
    Role string
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    Teams List<string>
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    TimeZone string
    The time zone of the user. Default is account default timezone.
    AvatarUrl string
    The URL of the user's avatar.
    Color string
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    Description string
    Email string
    The user's email address.
    HtmlUrl string
    URL at which the entity is uniquely displayed in the Web app
    InvitationSent bool
    If true, the user has an outstanding invitation.
    JobTitle string
    The user's title.
    License string
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    Name string
    The name of the user.
    Role string
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    Teams []string
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    TimeZone string
    The time zone of the user. Default is account default timezone.
    avatarUrl String
    The URL of the user's avatar.
    color String
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    description String
    email String
    The user's email address.
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app
    invitationSent Boolean
    If true, the user has an outstanding invitation.
    jobTitle String
    The user's title.
    license String
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    name String
    The name of the user.
    role String
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    teams List<String>
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    timeZone String
    The time zone of the user. Default is account default timezone.
    avatarUrl string
    The URL of the user's avatar.
    color string
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    description string
    email string
    The user's email address.
    htmlUrl string
    URL at which the entity is uniquely displayed in the Web app
    invitationSent boolean
    If true, the user has an outstanding invitation.
    jobTitle string
    The user's title.
    license string
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    name string
    The name of the user.
    role string
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    teams string[]
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    timeZone string
    The time zone of the user. Default is account default timezone.
    avatar_url str
    The URL of the user's avatar.
    color str
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    description str
    email str
    The user's email address.
    html_url str
    URL at which the entity is uniquely displayed in the Web app
    invitation_sent bool
    If true, the user has an outstanding invitation.
    job_title str
    The user's title.
    license str
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    name str
    The name of the user.
    role str
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    teams Sequence[str]
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    time_zone str
    The time zone of the user. Default is account default timezone.
    avatarUrl String
    The URL of the user's avatar.
    color String
    The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue.
    description String
    email String
    The user's email address.
    htmlUrl String
    URL at which the entity is uniquely displayed in the Web app
    invitationSent Boolean
    If true, the user has an outstanding invitation.
    jobTitle String
    The user's title.
    license String
    The license id assigned to the user. If provided the user's role must exist in the assigned license's valid_roles list. To reference purchased licenses' ids see data source pagerduty.getLicenses data source.
    name String
    The name of the user.
    role String
    The user role. Can be admin, limited_user, observer, owner, read_only_user, read_only_limited_user, restricted_access, or user. Notes:

    • Account must have the read_only_users ability to set a user as a read_only_user or a read_only_limited_user, and must have advanced permissions abilities to set a user as observer or restricted_access.
    • With advanced permissions, users can have both a user role (base role) and a team role. The team role can be configured in the pagerduty.TeamMembership resource.
    • Mapping of role values to Web UI user role names available in the user roles support page.
    teams List<String>
    A list of teams the user should belong to. Please use pagerduty.TeamMembership instead.

    Deprecated: Use the 'pagerduty_team_membership' resource instead.

    timeZone String
    The time zone of the user. Default is account default timezone.

    Import

    Users can be imported using the id, e.g.

    $ pulumi import pagerduty:index/user:User main PLBP09X
    

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

    Package Details

    Repository
    PagerDuty pulumi/pulumi-pagerduty
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the pagerduty Terraform Provider.
    pagerduty logo
    PagerDuty v4.11.4 published on Wednesday, Apr 17, 2024 by Pulumi