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

lacework logo
lacework 2.0.6 published on Monday, Apr 14, 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 dictionary

    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 string
    A string representing the account name.
    Admin bool
    A boolean representing whether the user is an account admin.
    CustGuid string
    A string representing the Customer GUID for the account.
    UserEnabled bool
    A boolean representing whether the user is enabled.
    UserGuid string
    A string representing the User GUID in the account.
    AccountName string
    A string representing the account name.
    Admin bool
    A boolean representing whether the user is an account admin.
    CustGuid string
    A string representing the Customer GUID for the account.
    UserEnabled bool
    A boolean representing whether the user is enabled.
    UserGuid string
    A string representing the User GUID in the account.
    accountName String
    A string representing the account name.
    admin Boolean
    A boolean representing whether the user is an account admin.
    custGuid String
    A string representing the Customer GUID for the account.
    userEnabled Boolean
    A boolean representing whether the user is enabled.
    userGuid String
    A string representing the User GUID in the account.
    accountName string
    A string representing the account name.
    admin boolean
    A boolean representing whether the user is an account admin.
    custGuid string
    A string representing the Customer GUID for the account.
    userEnabled boolean
    A boolean representing whether the user is enabled.
    userGuid 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.
    accountName String
    A string representing the account name.
    admin Boolean
    A boolean representing whether the user is an account admin.
    custGuid String
    A string representing the Customer GUID for the account.
    userEnabled Boolean
    A boolean representing whether the user is enabled.
    userGuid 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.
    lacework logo
    lacework 2.0.6 published on Monday, Apr 14, 2025 by lacework