lacework 2.0.10 published on Wednesday, Oct 1, 2025 by lacework
lacework.getUserProfile
Start a Neo task
Explain and create a lacework.getUserProfile resource
lacework 2.0.10 published on Wednesday, Oct 1, 2025 by lacework
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({});
import pulumi
import pulumi_lacework as lacework
current = lacework.get_user_profile()
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Lacework = Pulumi.Lacework;
return await Deployment.RunAsync(() =>
{
var current = Lacework.GetUserProfile.Invoke();
});
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();
}
}
variables:
current:
fn::invoke:
function: lacework:getUserProfile
arguments: {}
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>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]func GetUserProfile(ctx *Context, args *GetUserProfileArgs, opts ...InvokeOption) (*GetUserProfileResult, error)
func GetUserProfileOutput(ctx *Context, args *GetUserProfileOutputArgs, opts ...InvokeOption) GetUserProfileResultOutput> 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)
}public static CompletableFuture<GetUserProfileResult> getUserProfile(GetUserProfileArgs args, InvokeOptions options)
public static Output<GetUserProfileResult> getUserProfile(GetUserProfileArgs args, InvokeOptions options)
fn::invoke:
function: lacework:index/getUserProfile:getUserProfile
arguments:
# arguments dictionaryThe 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<Get
User Profile Account> - A list of accounts in the Lacework tenant. See Account below for details.
- Id string
- 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 string
- A string representing the login URL for the Lacework account.
- Username string
- The username of the current user.
- Accounts
[]Get
User Profile Account - A list of accounts in the Lacework tenant. See Account below for details.
- Id string
- 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 string
- A string representing the login URL for the Lacework account.
- Username string
- The username of the current user.
- accounts
List<Get
User Profile Account> - A list of accounts in the Lacework tenant. See Account below for details.
- id String
- org
Account Boolean - A boolean representing whether the user has an organization account.
- org
Admin Boolean - A boolean representing whether the user is an organization admin.
- org
User 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
Get
User Profile Account[] - A list of accounts in the Lacework tenant. See Account below for details.
- id string
- org
Account boolean - A boolean representing whether the user has an organization account.
- org
Admin boolean - A boolean representing whether the user is an organization admin.
- org
User 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[Get
User Profile Account] - 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
- org
Account Boolean - A boolean representing whether the user has an organization account.
- org
Admin Boolean - A boolean representing whether the user is an organization admin.
- org
User 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
- Account
Name string - A string representing the account name.
- Admin bool
- A boolean representing whether the user is an account admin.
- Cust
Guid string - A string representing the Customer GUID for the account.
- User
Enabled bool - A boolean representing whether the user is enabled.
- User
Guid string - A string representing the User GUID in the account.
- Account
Name string - A string representing the account name.
- Admin bool
- A boolean representing whether the user is an account admin.
- Cust
Guid string - A string representing the Customer GUID for the account.
- User
Enabled bool - A boolean representing whether the user is enabled.
- User
Guid string - A string representing the User GUID in the account.
- account
Name String - A string representing the account name.
- admin Boolean
- A boolean representing whether the user is an account admin.
- cust
Guid String - A string representing the Customer GUID for the account.
- user
Enabled Boolean - A boolean representing whether the user is enabled.
- user
Guid String - A string representing the User GUID in the account.
- account
Name string - A string representing the account name.
- admin boolean
- A boolean representing whether the user is an account admin.
- cust
Guid string - A string representing the Customer GUID for the account.
- user
Enabled boolean - A boolean representing whether the user is enabled.
- user
Guid string - A string representing the User GUID in the account.
- account_
name str - A string representing the account name.
- admin bool
- A boolean representing whether the user is an account admin.
- cust_
guid str - A string representing the Customer GUID for the account.
- user_
enabled bool - A boolean representing whether the user is enabled.
- user_
guid str - A string representing the User GUID in the account.
- account
Name String - A string representing the account name.
- admin Boolean
- A boolean representing whether the user is an account admin.
- cust
Guid String - A string representing the Customer GUID for the account.
- user
Enabled Boolean - A boolean representing whether the user is enabled.
- user
Guid 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
laceworkTerraform Provider.
lacework 2.0.10 published on Wednesday, Oct 1, 2025 by lacework
