1. Packages
  2. Incident Provider
  3. API Docs
  4. getUser
incident 5.5.0 published on Wednesday, Apr 30, 2025 by incident-io

incident.getUser

Explore with Pulumi AI

incident logo
incident 5.5.0 published on Wednesday, Apr 30, 2025 by incident-io

    View users.

    Users all have a single base role, and can be assigned multiple custom roles. They can be managed via your Slack workspace or SAML provider.

    Using getUser

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
    function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>
    def get_user(email: Optional[str] = None,
                 id: Optional[str] = None,
                 slack_user_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetUserResult
    def get_user_output(email: Optional[pulumi.Input[str]] = None,
                 id: Optional[pulumi.Input[str]] = None,
                 slack_user_id: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
    func GetUser(ctx *Context, args *GetUserArgs, opts ...InvokeOption) (*GetUserResult, error)
    func GetUserOutput(ctx *Context, args *GetUserOutputArgs, opts ...InvokeOption) GetUserResultOutput

    > Note: This function is named GetUser in the Go SDK.

    public static class GetUser 
    {
        public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
        public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
    public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
    
    fn::invoke:
      function: incident:index/getUser:getUser
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Email string
    Id string
    The ID of this resource.
    SlackUserId string
    Email string
    Id string
    The ID of this resource.
    SlackUserId string
    email String
    id String
    The ID of this resource.
    slackUserId String
    email string
    id string
    The ID of this resource.
    slackUserId string
    email str
    id str
    The ID of this resource.
    slack_user_id str
    email String
    id String
    The ID of this resource.
    slackUserId String

    getUser Result

    The following output properties are available:

    Name string
    Email string
    Id string
    The ID of this resource.
    SlackUserId string
    Name string
    Email string
    Id string
    The ID of this resource.
    SlackUserId string
    name String
    email String
    id String
    The ID of this resource.
    slackUserId String
    name string
    email string
    id string
    The ID of this resource.
    slackUserId string
    name str
    email str
    id str
    The ID of this resource.
    slack_user_id str
    name String
    email String
    id String
    The ID of this resource.
    slackUserId String

    Package Details

    Repository
    incident incident-io/terraform-provider-incident
    License
    Notes
    This Pulumi package is based on the incident Terraform Provider.
    incident logo
    incident 5.5.0 published on Wednesday, Apr 30, 2025 by incident-io