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

lacework.getUserProfile

Explore with Pulumi AI

Use this data source to retrieve the User Profile of the current Lacework user.

Example Usage

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

const current = lacework.getUserProfile({});
Copy
import pulumi
import pulumi_lacework as lacework

current = lacework.get_user_profile()
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.GetUserProfile(ctx, &lacework.GetUserProfileArgs{}, nil)
		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 current = Lacework.GetUserProfile.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.lacework.LaceworkFunctions;
import com.pulumi.lacework.inputs.GetUserProfileArgs;
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 current = LaceworkFunctions.getUserProfile();

    }
}
Copy
variables:
  current:
    fn::invoke:
      function: lacework:getUserProfile
      arguments: {}
Copy

Using getUserProfile

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 getUserProfile(args: GetUserProfileArgs, opts?: InvokeOptions): Promise<GetUserProfileResult>
function getUserProfileOutput(args: GetUserProfileOutputArgs, opts?: InvokeOptions): Output<GetUserProfileResult>
Copy
def get_user_profile(id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetUserProfileResult
def get_user_profile_output(id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetUserProfileResult]
Copy
func GetUserProfile(ctx *Context, args *GetUserProfileArgs, opts ...InvokeOption) (*GetUserProfileResult, error)
func GetUserProfileOutput(ctx *Context, args *GetUserProfileOutputArgs, opts ...InvokeOption) GetUserProfileResultOutput
Copy

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

public static class GetUserProfile 
{
    public static Task<GetUserProfileResult> InvokeAsync(GetUserProfileArgs args, InvokeOptions? opts = null)
    public static Output<GetUserProfileResult> Invoke(GetUserProfileInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetUserProfileResult> getUserProfile(GetUserProfileArgs args, InvokeOptions options)
public static Output<GetUserProfileResult> getUserProfile(GetUserProfileArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: lacework:index/getUserProfile:getUserProfile
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id string
Id string
id String
id string
id str
id String

getUserProfile Result

The following output properties are available:

Accounts List<GetUserProfileAccount>
A list of accounts in the Lacework tenant. See Account below for details.
Id string
OrgAccount bool
A boolean representing whether the user has an organization account.
OrgAdmin bool
A boolean representing whether the user is an organization admin.
OrgUser bool
A boolean representing whether the user is an organization user.
Url string
A string representing the login URL for the Lacework account.
Username string
The username of the current user.
Accounts []GetUserProfileAccount
A list of accounts in the Lacework tenant. See Account below for details.
Id string
OrgAccount bool
A boolean representing whether the user has an organization account.
OrgAdmin bool
A boolean representing whether the user is an organization admin.
OrgUser bool
A boolean representing whether the user is an organization user.
Url string
A string representing the login URL for the Lacework account.
Username string
The username of the current user.
accounts List<GetUserProfileAccount>
A list of accounts in the Lacework tenant. See Account below for details.
id String
orgAccount Boolean
A boolean representing whether the user has an organization account.
orgAdmin Boolean
A boolean representing whether the user is an organization admin.
orgUser Boolean
A boolean representing whether the user is an organization user.
url String
A string representing the login URL for the Lacework account.
username String
The username of the current user.
accounts GetUserProfileAccount[]
A list of accounts in the Lacework tenant. See Account below for details.
id string
orgAccount boolean
A boolean representing whether the user has an organization account.
orgAdmin boolean
A boolean representing whether the user is an organization admin.
orgUser boolean
A boolean representing whether the user is an organization user.
url string
A string representing the login URL for the Lacework account.
username string
The username of the current user.
accounts Sequence[GetUserProfileAccount]
A list of accounts in the Lacework tenant. See Account below for details.
id str
org_account bool
A boolean representing whether the user has an organization account.
org_admin bool
A boolean representing whether the user is an organization admin.
org_user bool
A boolean representing whether the user is an organization user.
url str
A string representing the login URL for the Lacework account.
username str
The username of the current user.
accounts List<Property Map>
A list of accounts in the Lacework tenant. See Account below for details.
id String
orgAccount Boolean
A boolean representing whether the user has an organization account.
orgAdmin Boolean
A boolean representing whether the user is an organization admin.
orgUser Boolean
A boolean representing whether the user is an organization user.
url String
A string representing the login URL for the Lacework account.
username String
The username of the current user.

Supporting Types

GetUserProfileAccount

AccountName This property is required. string
A string representing the account name.
Admin This property is required. bool
A boolean representing whether the user is an account admin.
CustGuid This property is required. string
A string representing the Customer GUID for the account.
UserEnabled This property is required. bool
A boolean representing whether the user is enabled.
UserGuid This property is required. string
A string representing the User GUID in the account.
AccountName This property is required. string
A string representing the account name.
Admin This property is required. bool
A boolean representing whether the user is an account admin.
CustGuid This property is required. string
A string representing the Customer GUID for the account.
UserEnabled This property is required. bool
A boolean representing whether the user is enabled.
UserGuid This property is required. string
A string representing the User GUID in the account.
accountName This property is required. String
A string representing the account name.
admin This property is required. Boolean
A boolean representing whether the user is an account admin.
custGuid This property is required. String
A string representing the Customer GUID for the account.
userEnabled This property is required. Boolean
A boolean representing whether the user is enabled.
userGuid This property is required. String
A string representing the User GUID in the account.
accountName This property is required. string
A string representing the account name.
admin This property is required. boolean
A boolean representing whether the user is an account admin.
custGuid This property is required. string
A string representing the Customer GUID for the account.
userEnabled This property is required. boolean
A boolean representing whether the user is enabled.
userGuid This property is required. string
A string representing the User GUID in the account.
account_name This property is required. str
A string representing the account name.
admin This property is required. bool
A boolean representing whether the user is an account admin.
cust_guid This property is required. str
A string representing the Customer GUID for the account.
user_enabled This property is required. bool
A boolean representing whether the user is enabled.
user_guid This property is required. str
A string representing the User GUID in the account.
accountName This property is required. String
A string representing the account name.
admin This property is required. Boolean
A boolean representing whether the user is an account admin.
custGuid This property is required. String
A string representing the Customer GUID for the account.
userEnabled This property is required. Boolean
A boolean representing whether the user is enabled.
userGuid This property is required. String
A string representing the User GUID in the account.

Package Details

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