1. Packages
  2. Prismacloud Provider
  3. API Docs
  4. getUserProfile
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

prismacloud.getUserProfile

Explore with Pulumi AI

prismacloud logo
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks

    Retrieve information on a specific user profile.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as prismacloud from "@pulumi/prismacloud";
    
    const example = prismacloud.getUserProfile({
        profileId: "user@email.com",
    });
    
    import pulumi
    import pulumi_prismacloud as prismacloud
    
    example = prismacloud.get_user_profile(profile_id="user@email.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := prismacloud.LookupUserProfile(ctx, &prismacloud.LookupUserProfileArgs{
    			ProfileId: "user@email.com",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Prismacloud = Pulumi.Prismacloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Prismacloud.GetUserProfile.Invoke(new()
        {
            ProfileId = "user@email.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.prismacloud.PrismacloudFunctions;
    import com.pulumi.prismacloud.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 example = PrismacloudFunctions.getUserProfile(GetUserProfileArgs.builder()
                .profileId("user@email.com")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: prismacloud:getUserProfile
          arguments:
            profileId: user@email.com
    

    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,
                         profile_id: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetUserProfileResult
    def get_user_profile_output(id: Optional[pulumi.Input[str]] = None,
                         profile_id: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetUserProfileResult]
    func LookupUserProfile(ctx *Context, args *LookupUserProfileArgs, opts ...InvokeOption) (*LookupUserProfileResult, error)
    func LookupUserProfileOutput(ctx *Context, args *LookupUserProfileOutputArgs, opts ...InvokeOption) LookupUserProfileResultOutput

    > Note: This function is named LookupUserProfile 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: prismacloud:index/getUserProfile:getUserProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProfileId string
    Profile ID (email or username).
    Id string
    ProfileId string
    Profile ID (email or username).
    Id string
    profileId String
    Profile ID (email or username).
    id String
    profileId string
    Profile ID (email or username).
    id string
    profile_id str
    Profile ID (email or username).
    id str
    profileId String
    Profile ID (email or username).
    id String

    getUserProfile Result

    The following output properties are available:

    AccessKeysAllowed bool
    (bool) Access keys allowed.
    AccessKeysCount double
    (int) Access key count.
    AccountType string
    Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
    DefaultRoleId string
    Default User Role ID.
    DisplayName string
    Display name.
    Email string
    Email ID.
    Enabled bool
    (bool) Enabled.
    FirstName string
    First name.
    Id string
    LastLoginTs double
    (int) Last login timestamp.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs double
    (int) Last modified timestamp.
    LastName string
    Last name.
    ProfileId string
    RoleIds List<string>
    List of Role IDs.
    Roles List<GetUserProfileRole>
    List of User Profile Roles Details. Each item has role information, as defined below.
    TimeZone string
    Time zone (e.g. America/Los_Angeles).
    Username string
    User email or service account name.
    AccessKeysAllowed bool
    (bool) Access keys allowed.
    AccessKeysCount float64
    (int) Access key count.
    AccountType string
    Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
    DefaultRoleId string
    Default User Role ID.
    DisplayName string
    Display name.
    Email string
    Email ID.
    Enabled bool
    (bool) Enabled.
    FirstName string
    First name.
    Id string
    LastLoginTs float64
    (int) Last login timestamp.
    LastModifiedBy string
    Last modified by.
    LastModifiedTs float64
    (int) Last modified timestamp.
    LastName string
    Last name.
    ProfileId string
    RoleIds []string
    List of Role IDs.
    Roles []GetUserProfileRole
    List of User Profile Roles Details. Each item has role information, as defined below.
    TimeZone string
    Time zone (e.g. America/Los_Angeles).
    Username string
    User email or service account name.
    accessKeysAllowed Boolean
    (bool) Access keys allowed.
    accessKeysCount Double
    (int) Access key count.
    accountType String
    Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
    defaultRoleId String
    Default User Role ID.
    displayName String
    Display name.
    email String
    Email ID.
    enabled Boolean
    (bool) Enabled.
    firstName String
    First name.
    id String
    lastLoginTs Double
    (int) Last login timestamp.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Double
    (int) Last modified timestamp.
    lastName String
    Last name.
    profileId String
    roleIds List<String>
    List of Role IDs.
    roles List<GetUserProfileRole>
    List of User Profile Roles Details. Each item has role information, as defined below.
    timeZone String
    Time zone (e.g. America/Los_Angeles).
    username String
    User email or service account name.
    accessKeysAllowed boolean
    (bool) Access keys allowed.
    accessKeysCount number
    (int) Access key count.
    accountType string
    Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
    defaultRoleId string
    Default User Role ID.
    displayName string
    Display name.
    email string
    Email ID.
    enabled boolean
    (bool) Enabled.
    firstName string
    First name.
    id string
    lastLoginTs number
    (int) Last login timestamp.
    lastModifiedBy string
    Last modified by.
    lastModifiedTs number
    (int) Last modified timestamp.
    lastName string
    Last name.
    profileId string
    roleIds string[]
    List of Role IDs.
    roles GetUserProfileRole[]
    List of User Profile Roles Details. Each item has role information, as defined below.
    timeZone string
    Time zone (e.g. America/Los_Angeles).
    username string
    User email or service account name.
    access_keys_allowed bool
    (bool) Access keys allowed.
    access_keys_count float
    (int) Access key count.
    account_type str
    Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
    default_role_id str
    Default User Role ID.
    display_name str
    Display name.
    email str
    Email ID.
    enabled bool
    (bool) Enabled.
    first_name str
    First name.
    id str
    last_login_ts float
    (int) Last login timestamp.
    last_modified_by str
    Last modified by.
    last_modified_ts float
    (int) Last modified timestamp.
    last_name str
    Last name.
    profile_id str
    role_ids Sequence[str]
    List of Role IDs.
    roles Sequence[GetUserProfileRole]
    List of User Profile Roles Details. Each item has role information, as defined below.
    time_zone str
    Time zone (e.g. America/Los_Angeles).
    username str
    User email or service account name.
    accessKeysAllowed Boolean
    (bool) Access keys allowed.
    accessKeysCount Number
    (int) Access key count.
    accountType String
    Account Type (USER_ACCOUNT or SERVICE_ACCOUNT).
    defaultRoleId String
    Default User Role ID.
    displayName String
    Display name.
    email String
    Email ID.
    enabled Boolean
    (bool) Enabled.
    firstName String
    First name.
    id String
    lastLoginTs Number
    (int) Last login timestamp.
    lastModifiedBy String
    Last modified by.
    lastModifiedTs Number
    (int) Last modified timestamp.
    lastName String
    Last name.
    profileId String
    roleIds List<String>
    List of Role IDs.
    roles List<Property Map>
    List of User Profile Roles Details. Each item has role information, as defined below.
    timeZone String
    Time zone (e.g. America/Los_Angeles).
    username String
    User email or service account name.

    Supporting Types

    GetUserProfileRole

    Name string
    User Role Name.
    OnlyAllowCiAccess bool
    (bool) Allow only CI Access for Build and Deploy security roles.
    OnlyAllowComputeAccess bool
    (bool) Allow only Compute Access for reduced system admin roles.
    OnlyAllowReadAccess bool
    (bool) Allow only read access.
    RoleId string
    User Role ID.
    RoleType string
    User Role Type.
    Name string
    User Role Name.
    OnlyAllowCiAccess bool
    (bool) Allow only CI Access for Build and Deploy security roles.
    OnlyAllowComputeAccess bool
    (bool) Allow only Compute Access for reduced system admin roles.
    OnlyAllowReadAccess bool
    (bool) Allow only read access.
    RoleId string
    User Role ID.
    RoleType string
    User Role Type.
    name String
    User Role Name.
    onlyAllowCiAccess Boolean
    (bool) Allow only CI Access for Build and Deploy security roles.
    onlyAllowComputeAccess Boolean
    (bool) Allow only Compute Access for reduced system admin roles.
    onlyAllowReadAccess Boolean
    (bool) Allow only read access.
    roleId String
    User Role ID.
    roleType String
    User Role Type.
    name string
    User Role Name.
    onlyAllowCiAccess boolean
    (bool) Allow only CI Access for Build and Deploy security roles.
    onlyAllowComputeAccess boolean
    (bool) Allow only Compute Access for reduced system admin roles.
    onlyAllowReadAccess boolean
    (bool) Allow only read access.
    roleId string
    User Role ID.
    roleType string
    User Role Type.
    name str
    User Role Name.
    only_allow_ci_access bool
    (bool) Allow only CI Access for Build and Deploy security roles.
    only_allow_compute_access bool
    (bool) Allow only Compute Access for reduced system admin roles.
    only_allow_read_access bool
    (bool) Allow only read access.
    role_id str
    User Role ID.
    role_type str
    User Role Type.
    name String
    User Role Name.
    onlyAllowCiAccess Boolean
    (bool) Allow only CI Access for Build and Deploy security roles.
    onlyAllowComputeAccess Boolean
    (bool) Allow only Compute Access for reduced system admin roles.
    onlyAllowReadAccess Boolean
    (bool) Allow only read access.
    roleId String
    User Role ID.
    roleType String
    User Role Type.

    Package Details

    Repository
    prismacloud paloaltonetworks/terraform-provider-prismacloud
    License
    Notes
    This Pulumi package is based on the prismacloud Terraform Provider.
    prismacloud logo
    prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks