sysdig 1.56.1 published on Thursday, May 8, 2025 by sysdiglabs
sysdig.getCurrentUser
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const me = sysdig.getCurrentUser({});
import pulumi
import pulumi_sysdig as sysdig
me = sysdig.get_current_user()
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sysdig.GetCurrentUser(ctx, &sysdig.GetCurrentUserArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sysdig = Pulumi.Sysdig;
return await Deployment.RunAsync(() => 
{
    var me = Sysdig.GetCurrentUser.Invoke();
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.SysdigFunctions;
import com.pulumi.sysdig.inputs.GetCurrentUserArgs;
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) {
        final var me = SysdigFunctions.getCurrentUser();
    }
}
variables:
  me:
    fn::invoke:
      function: sysdig:getCurrentUser
      arguments: {}
Using getCurrentUser
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 getCurrentUser(args: GetCurrentUserArgs, opts?: InvokeOptions): Promise<GetCurrentUserResult>
function getCurrentUserOutput(args: GetCurrentUserOutputArgs, opts?: InvokeOptions): Output<GetCurrentUserResult>def get_current_user(id: Optional[str] = None,
                     timeouts: Optional[GetCurrentUserTimeouts] = None,
                     opts: Optional[InvokeOptions] = None) -> GetCurrentUserResult
def get_current_user_output(id: Optional[pulumi.Input[str]] = None,
                     timeouts: Optional[pulumi.Input[GetCurrentUserTimeoutsArgs]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetCurrentUserResult]func GetCurrentUser(ctx *Context, args *GetCurrentUserArgs, opts ...InvokeOption) (*GetCurrentUserResult, error)
func GetCurrentUserOutput(ctx *Context, args *GetCurrentUserOutputArgs, opts ...InvokeOption) GetCurrentUserResultOutput> Note: This function is named GetCurrentUser in the Go SDK.
public static class GetCurrentUser 
{
    public static Task<GetCurrentUserResult> InvokeAsync(GetCurrentUserArgs args, InvokeOptions? opts = null)
    public static Output<GetCurrentUserResult> Invoke(GetCurrentUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCurrentUserResult> getCurrentUser(GetCurrentUserArgs args, InvokeOptions options)
public static Output<GetCurrentUserResult> getCurrentUser(GetCurrentUserArgs args, InvokeOptions options)
fn::invoke:
  function: sysdig:index/getCurrentUser:getCurrentUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- The current user's ID.
- Timeouts
GetCurrent User Timeouts 
- Id string
- The current user's ID.
- Timeouts
GetCurrent User Timeouts 
- id String
- The current user's ID.
- timeouts
GetCurrent User Timeouts 
- id string
- The current user's ID.
- timeouts
GetCurrent User Timeouts 
- id str
- The current user's ID.
- timeouts
GetCurrent User Timeouts 
- id String
- The current user's ID.
- timeouts Property Map
getCurrentUser Result
The following output properties are available:
- Email string
- The user email.
- Id string
- The current user's ID.
- LastName string
- The user's last name.
- Name string
- The user's first name.
- SystemRole string
- The user's system role.
- Timeouts
GetCurrent User Timeouts 
- Email string
- The user email.
- Id string
- The current user's ID.
- LastName string
- The user's last name.
- Name string
- The user's first name.
- SystemRole string
- The user's system role.
- Timeouts
GetCurrent User Timeouts 
- email String
- The user email.
- id String
- The current user's ID.
- lastName String
- The user's last name.
- name String
- The user's first name.
- systemRole String
- The user's system role.
- timeouts
GetCurrent User Timeouts 
- email string
- The user email.
- id string
- The current user's ID.
- lastName string
- The user's last name.
- name string
- The user's first name.
- systemRole string
- The user's system role.
- timeouts
GetCurrent User Timeouts 
- email str
- The user email.
- id str
- The current user's ID.
- last_name str
- The user's last name.
- name str
- The user's first name.
- system_role str
- The user's system role.
- timeouts
GetCurrent User Timeouts 
- email String
- The user email.
- id String
- The current user's ID.
- lastName String
- The user's last name.
- name String
- The user's first name.
- systemRole String
- The user's system role.
- timeouts Property Map
Supporting Types
GetCurrentUserTimeouts   
- Read string
- Read string
- read String
- read string
- read str
- read String
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the sysdigTerraform Provider.