1. Packages
  2. Onelogin Provider
  3. API Docs
  4. Users
onelogin 0.11.0 published on Friday, Aug 29, 2025 by onelogin

onelogin.Users

Explore with Pulumi AI

onelogin logo
onelogin 0.11.0 published on Friday, Aug 29, 2025 by onelogin

    Manage User resources.

    This resource allows you to create and configure Users.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as onelogin from "@pulumi/onelogin";
    
    const example = new onelogin.Users("example", {
        email: "timmy.tester@test.com",
        username: "timmy.tester",
    });
    
    import pulumi
    import pulumi_onelogin as onelogin
    
    example = onelogin.Users("example",
        email="timmy.tester@test.com",
        username="timmy.tester")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/onelogin/onelogin"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := onelogin.NewUsers(ctx, "example", &onelogin.UsersArgs{
    			Email:    pulumi.String("timmy.tester@test.com"),
    			Username: pulumi.String("timmy.tester"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Onelogin = Pulumi.Onelogin;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Onelogin.Users("example", new()
        {
            Email = "timmy.tester@test.com",
            Username = "timmy.tester",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.onelogin.Users;
    import com.pulumi.onelogin.UsersArgs;
    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) {
            var example = new Users("example", UsersArgs.builder()
                .email("timmy.tester@test.com")
                .username("timmy.tester")
                .build());
    
        }
    }
    
    resources:
      example:
        type: onelogin:Users
        properties:
          email: timmy.tester@test.com
          username: timmy.tester
    

    Create Users Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Users(name: string, args: UsersArgs, opts?: CustomResourceOptions);
    @overload
    def Users(resource_name: str,
              args: UsersArgs,
              opts: Optional[ResourceOptions] = None)
    
    @overload
    def Users(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              email: Optional[str] = None,
              username: Optional[str] = None,
              manager_user_id: Optional[float] = None,
              member_of: Optional[str] = None,
              directory_id: Optional[float] = None,
              distinguished_name: Optional[str] = None,
              custom_attributes: Optional[Mapping[str, str]] = None,
              external_id: Optional[float] = None,
              firstname: Optional[str] = None,
              group_id: Optional[float] = None,
              lastname: Optional[str] = None,
              password: Optional[str] = None,
              department: Optional[str] = None,
              comment: Optional[str] = None,
              manager_ad_id: Optional[float] = None,
              phone: Optional[str] = None,
              samaccountname: Optional[str] = None,
              state: Optional[float] = None,
              status: Optional[float] = None,
              title: Optional[str] = None,
              trusted_idp_id: Optional[float] = None,
              company: Optional[str] = None,
              userprincipalname: Optional[str] = None,
              users_id: Optional[str] = None)
    func NewUsers(ctx *Context, name string, args UsersArgs, opts ...ResourceOption) (*Users, error)
    public Users(string name, UsersArgs args, CustomResourceOptions? opts = null)
    public Users(String name, UsersArgs args)
    public Users(String name, UsersArgs args, CustomResourceOptions options)
    
    type: onelogin:Users
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args UsersArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args UsersArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args UsersArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args UsersArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args UsersArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var usersResource = new Onelogin.Users("usersResource", new()
    {
        Email = "string",
        Username = "string",
        ManagerUserId = 0,
        MemberOf = "string",
        DirectoryId = 0,
        DistinguishedName = "string",
        CustomAttributes = 
        {
            { "string", "string" },
        },
        ExternalId = 0,
        Firstname = "string",
        GroupId = 0,
        Lastname = "string",
        Password = "string",
        Department = "string",
        Comment = "string",
        ManagerAdId = 0,
        Phone = "string",
        Samaccountname = "string",
        State = 0,
        Status = 0,
        Title = "string",
        TrustedIdpId = 0,
        Company = "string",
        Userprincipalname = "string",
        UsersId = "string",
    });
    
    example, err := onelogin.NewUsers(ctx, "usersResource", &onelogin.UsersArgs{
    	Email:             pulumi.String("string"),
    	Username:          pulumi.String("string"),
    	ManagerUserId:     pulumi.Float64(0),
    	MemberOf:          pulumi.String("string"),
    	DirectoryId:       pulumi.Float64(0),
    	DistinguishedName: pulumi.String("string"),
    	CustomAttributes: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ExternalId:        pulumi.Float64(0),
    	Firstname:         pulumi.String("string"),
    	GroupId:           pulumi.Float64(0),
    	Lastname:          pulumi.String("string"),
    	Password:          pulumi.String("string"),
    	Department:        pulumi.String("string"),
    	Comment:           pulumi.String("string"),
    	ManagerAdId:       pulumi.Float64(0),
    	Phone:             pulumi.String("string"),
    	Samaccountname:    pulumi.String("string"),
    	State:             pulumi.Float64(0),
    	Status:            pulumi.Float64(0),
    	Title:             pulumi.String("string"),
    	TrustedIdpId:      pulumi.Float64(0),
    	Company:           pulumi.String("string"),
    	Userprincipalname: pulumi.String("string"),
    	UsersId:           pulumi.String("string"),
    })
    
    var usersResource = new Users("usersResource", UsersArgs.builder()
        .email("string")
        .username("string")
        .managerUserId(0.0)
        .memberOf("string")
        .directoryId(0.0)
        .distinguishedName("string")
        .customAttributes(Map.of("string", "string"))
        .externalId(0.0)
        .firstname("string")
        .groupId(0.0)
        .lastname("string")
        .password("string")
        .department("string")
        .comment("string")
        .managerAdId(0.0)
        .phone("string")
        .samaccountname("string")
        .state(0.0)
        .status(0.0)
        .title("string")
        .trustedIdpId(0.0)
        .company("string")
        .userprincipalname("string")
        .usersId("string")
        .build());
    
    users_resource = onelogin.Users("usersResource",
        email="string",
        username="string",
        manager_user_id=0,
        member_of="string",
        directory_id=0,
        distinguished_name="string",
        custom_attributes={
            "string": "string",
        },
        external_id=0,
        firstname="string",
        group_id=0,
        lastname="string",
        password="string",
        department="string",
        comment="string",
        manager_ad_id=0,
        phone="string",
        samaccountname="string",
        state=0,
        status=0,
        title="string",
        trusted_idp_id=0,
        company="string",
        userprincipalname="string",
        users_id="string")
    
    const usersResource = new onelogin.Users("usersResource", {
        email: "string",
        username: "string",
        managerUserId: 0,
        memberOf: "string",
        directoryId: 0,
        distinguishedName: "string",
        customAttributes: {
            string: "string",
        },
        externalId: 0,
        firstname: "string",
        groupId: 0,
        lastname: "string",
        password: "string",
        department: "string",
        comment: "string",
        managerAdId: 0,
        phone: "string",
        samaccountname: "string",
        state: 0,
        status: 0,
        title: "string",
        trustedIdpId: 0,
        company: "string",
        userprincipalname: "string",
        usersId: "string",
    });
    
    type: onelogin:Users
    properties:
        comment: string
        company: string
        customAttributes:
            string: string
        department: string
        directoryId: 0
        distinguishedName: string
        email: string
        externalId: 0
        firstname: string
        groupId: 0
        lastname: string
        managerAdId: 0
        managerUserId: 0
        memberOf: string
        password: string
        phone: string
        samaccountname: string
        state: 0
        status: 0
        title: string
        trustedIdpId: 0
        username: string
        userprincipalname: string
        usersId: string
    

    Users Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Users resource accepts the following input properties:

    Email string
    The user's email.
    Username string
    The user's username.
    Comment string
    A comment about the user
    Company string
    The user's company
    CustomAttributes Dictionary<string, string>
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    Department string
    The user's department
    DirectoryId double
    The user's directory_id
    DistinguishedName string
    The user's distinguished name
    ExternalId double
    The user's external_id
    Firstname string
    The user's first name
    GroupId double
    The user's group_id
    Lastname string
    The user's last name
    ManagerAdId double
    The user's manager_ad_id
    ManagerUserId double
    The user's manager_user_id
    MemberOf string
    The user's member_of
    Password string
    The user's password. This field is sensitive and will not be displayed in logs or output.
    Phone string
    The user's phone number
    Samaccountname string
    The user's samaccount name
    State double
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    Status double
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    Title string
    The user's title
    TrustedIdpId double
    The user's trusted_idp_id
    Userprincipalname string
    The user's user principal name
    UsersId string
    The user's id
    Email string
    The user's email.
    Username string
    The user's username.
    Comment string
    A comment about the user
    Company string
    The user's company
    CustomAttributes map[string]string
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    Department string
    The user's department
    DirectoryId float64
    The user's directory_id
    DistinguishedName string
    The user's distinguished name
    ExternalId float64
    The user's external_id
    Firstname string
    The user's first name
    GroupId float64
    The user's group_id
    Lastname string
    The user's last name
    ManagerAdId float64
    The user's manager_ad_id
    ManagerUserId float64
    The user's manager_user_id
    MemberOf string
    The user's member_of
    Password string
    The user's password. This field is sensitive and will not be displayed in logs or output.
    Phone string
    The user's phone number
    Samaccountname string
    The user's samaccount name
    State float64
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    Status float64
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    Title string
    The user's title
    TrustedIdpId float64
    The user's trusted_idp_id
    Userprincipalname string
    The user's user principal name
    UsersId string
    The user's id
    email String
    The user's email.
    username String
    The user's username.
    comment String
    A comment about the user
    company String
    The user's company
    customAttributes Map<String,String>
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    department String
    The user's department
    directoryId Double
    The user's directory_id
    distinguishedName String
    The user's distinguished name
    externalId Double
    The user's external_id
    firstname String
    The user's first name
    groupId Double
    The user's group_id
    lastname String
    The user's last name
    managerAdId Double
    The user's manager_ad_id
    managerUserId Double
    The user's manager_user_id
    memberOf String
    The user's member_of
    password String
    The user's password. This field is sensitive and will not be displayed in logs or output.
    phone String
    The user's phone number
    samaccountname String
    The user's samaccount name
    state Double
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    status Double
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    title String
    The user's title
    trustedIdpId Double
    The user's trusted_idp_id
    userprincipalname String
    The user's user principal name
    usersId String
    The user's id
    email string
    The user's email.
    username string
    The user's username.
    comment string
    A comment about the user
    company string
    The user's company
    customAttributes {[key: string]: string}
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    department string
    The user's department
    directoryId number
    The user's directory_id
    distinguishedName string
    The user's distinguished name
    externalId number
    The user's external_id
    firstname string
    The user's first name
    groupId number
    The user's group_id
    lastname string
    The user's last name
    managerAdId number
    The user's manager_ad_id
    managerUserId number
    The user's manager_user_id
    memberOf string
    The user's member_of
    password string
    The user's password. This field is sensitive and will not be displayed in logs or output.
    phone string
    The user's phone number
    samaccountname string
    The user's samaccount name
    state number
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    status number
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    title string
    The user's title
    trustedIdpId number
    The user's trusted_idp_id
    userprincipalname string
    The user's user principal name
    usersId string
    The user's id
    email str
    The user's email.
    username str
    The user's username.
    comment str
    A comment about the user
    company str
    The user's company
    custom_attributes Mapping[str, str]
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    department str
    The user's department
    directory_id float
    The user's directory_id
    distinguished_name str
    The user's distinguished name
    external_id float
    The user's external_id
    firstname str
    The user's first name
    group_id float
    The user's group_id
    lastname str
    The user's last name
    manager_ad_id float
    The user's manager_ad_id
    manager_user_id float
    The user's manager_user_id
    member_of str
    The user's member_of
    password str
    The user's password. This field is sensitive and will not be displayed in logs or output.
    phone str
    The user's phone number
    samaccountname str
    The user's samaccount name
    state float
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    status float
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    title str
    The user's title
    trusted_idp_id float
    The user's trusted_idp_id
    userprincipalname str
    The user's user principal name
    users_id str
    The user's id
    email String
    The user's email.
    username String
    The user's username.
    comment String
    A comment about the user
    company String
    The user's company
    customAttributes Map<String>
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    department String
    The user's department
    directoryId Number
    The user's directory_id
    distinguishedName String
    The user's distinguished name
    externalId Number
    The user's external_id
    firstname String
    The user's first name
    groupId Number
    The user's group_id
    lastname String
    The user's last name
    managerAdId Number
    The user's manager_ad_id
    managerUserId Number
    The user's manager_user_id
    memberOf String
    The user's member_of
    password String
    The user's password. This field is sensitive and will not be displayed in logs or output.
    phone String
    The user's phone number
    samaccountname String
    The user's samaccount name
    state Number
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    status Number
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    title String
    The user's title
    trustedIdpId Number
    The user's trusted_idp_id
    userprincipalname String
    The user's user principal name
    usersId String
    The user's id

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Users resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Users Resource

    Get an existing Users resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: UsersState, opts?: CustomResourceOptions): Users
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            comment: Optional[str] = None,
            company: Optional[str] = None,
            custom_attributes: Optional[Mapping[str, str]] = None,
            department: Optional[str] = None,
            directory_id: Optional[float] = None,
            distinguished_name: Optional[str] = None,
            email: Optional[str] = None,
            external_id: Optional[float] = None,
            firstname: Optional[str] = None,
            group_id: Optional[float] = None,
            lastname: Optional[str] = None,
            manager_ad_id: Optional[float] = None,
            manager_user_id: Optional[float] = None,
            member_of: Optional[str] = None,
            password: Optional[str] = None,
            phone: Optional[str] = None,
            samaccountname: Optional[str] = None,
            state: Optional[float] = None,
            status: Optional[float] = None,
            title: Optional[str] = None,
            trusted_idp_id: Optional[float] = None,
            username: Optional[str] = None,
            userprincipalname: Optional[str] = None,
            users_id: Optional[str] = None) -> Users
    func GetUsers(ctx *Context, name string, id IDInput, state *UsersState, opts ...ResourceOption) (*Users, error)
    public static Users Get(string name, Input<string> id, UsersState? state, CustomResourceOptions? opts = null)
    public static Users get(String name, Output<String> id, UsersState state, CustomResourceOptions options)
    resources:  _:    type: onelogin:Users    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Comment string
    A comment about the user
    Company string
    The user's company
    CustomAttributes Dictionary<string, string>
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    Department string
    The user's department
    DirectoryId double
    The user's directory_id
    DistinguishedName string
    The user's distinguished name
    Email string
    The user's email.
    ExternalId double
    The user's external_id
    Firstname string
    The user's first name
    GroupId double
    The user's group_id
    Lastname string
    The user's last name
    ManagerAdId double
    The user's manager_ad_id
    ManagerUserId double
    The user's manager_user_id
    MemberOf string
    The user's member_of
    Password string
    The user's password. This field is sensitive and will not be displayed in logs or output.
    Phone string
    The user's phone number
    Samaccountname string
    The user's samaccount name
    State double
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    Status double
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    Title string
    The user's title
    TrustedIdpId double
    The user's trusted_idp_id
    Username string
    The user's username.
    Userprincipalname string
    The user's user principal name
    UsersId string
    The user's id
    Comment string
    A comment about the user
    Company string
    The user's company
    CustomAttributes map[string]string
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    Department string
    The user's department
    DirectoryId float64
    The user's directory_id
    DistinguishedName string
    The user's distinguished name
    Email string
    The user's email.
    ExternalId float64
    The user's external_id
    Firstname string
    The user's first name
    GroupId float64
    The user's group_id
    Lastname string
    The user's last name
    ManagerAdId float64
    The user's manager_ad_id
    ManagerUserId float64
    The user's manager_user_id
    MemberOf string
    The user's member_of
    Password string
    The user's password. This field is sensitive and will not be displayed in logs or output.
    Phone string
    The user's phone number
    Samaccountname string
    The user's samaccount name
    State float64
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    Status float64
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    Title string
    The user's title
    TrustedIdpId float64
    The user's trusted_idp_id
    Username string
    The user's username.
    Userprincipalname string
    The user's user principal name
    UsersId string
    The user's id
    comment String
    A comment about the user
    company String
    The user's company
    customAttributes Map<String,String>
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    department String
    The user's department
    directoryId Double
    The user's directory_id
    distinguishedName String
    The user's distinguished name
    email String
    The user's email.
    externalId Double
    The user's external_id
    firstname String
    The user's first name
    groupId Double
    The user's group_id
    lastname String
    The user's last name
    managerAdId Double
    The user's manager_ad_id
    managerUserId Double
    The user's manager_user_id
    memberOf String
    The user's member_of
    password String
    The user's password. This field is sensitive and will not be displayed in logs or output.
    phone String
    The user's phone number
    samaccountname String
    The user's samaccount name
    state Double
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    status Double
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    title String
    The user's title
    trustedIdpId Double
    The user's trusted_idp_id
    username String
    The user's username.
    userprincipalname String
    The user's user principal name
    usersId String
    The user's id
    comment string
    A comment about the user
    company string
    The user's company
    customAttributes {[key: string]: string}
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    department string
    The user's department
    directoryId number
    The user's directory_id
    distinguishedName string
    The user's distinguished name
    email string
    The user's email.
    externalId number
    The user's external_id
    firstname string
    The user's first name
    groupId number
    The user's group_id
    lastname string
    The user's last name
    managerAdId number
    The user's manager_ad_id
    managerUserId number
    The user's manager_user_id
    memberOf string
    The user's member_of
    password string
    The user's password. This field is sensitive and will not be displayed in logs or output.
    phone string
    The user's phone number
    samaccountname string
    The user's samaccount name
    state number
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    status number
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    title string
    The user's title
    trustedIdpId number
    The user's trusted_idp_id
    username string
    The user's username.
    userprincipalname string
    The user's user principal name
    usersId string
    The user's id
    comment str
    A comment about the user
    company str
    The user's company
    custom_attributes Mapping[str, str]
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    department str
    The user's department
    directory_id float
    The user's directory_id
    distinguished_name str
    The user's distinguished name
    email str
    The user's email.
    external_id float
    The user's external_id
    firstname str
    The user's first name
    group_id float
    The user's group_id
    lastname str
    The user's last name
    manager_ad_id float
    The user's manager_ad_id
    manager_user_id float
    The user's manager_user_id
    member_of str
    The user's member_of
    password str
    The user's password. This field is sensitive and will not be displayed in logs or output.
    phone str
    The user's phone number
    samaccountname str
    The user's samaccount name
    state float
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    status float
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    title str
    The user's title
    trusted_idp_id float
    The user's trusted_idp_id
    username str
    The user's username.
    userprincipalname str
    The user's user principal name
    users_id str
    The user's id
    comment String
    A comment about the user
    company String
    The user's company
    customAttributes Map<String>
    Map of custom attribute key/value pairs. This field is being deprecated in favor of the onelogin.UserCustomAttributes resource.
    department String
    The user's department
    directoryId Number
    The user's directory_id
    distinguishedName String
    The user's distinguished name
    email String
    The user's email.
    externalId Number
    The user's external_id
    firstname String
    The user's first name
    groupId Number
    The user's group_id
    lastname String
    The user's last name
    managerAdId Number
    The user's manager_ad_id
    managerUserId Number
    The user's manager_user_id
    memberOf String
    The user's member_of
    password String
    The user's password. This field is sensitive and will not be displayed in logs or output.
    phone String
    The user's phone number
    samaccountname String
    The user's samaccount name
    state Number
    The user's state. Must be one of 0: Unapproved 1: Approved 2: Rejected 3: Unlicensed
    status Number
    The user's status. Must be one of 0: Unactivated 1: Active 2: Suspended 3: Locked 4: Password expired 5: Awaiting password reset 7: Password Pending 8: Security questions required
    title String
    The user's title
    trustedIdpId Number
    The user's trusted_idp_id
    username String
    The user's username.
    userprincipalname String
    The user's user principal name
    usersId String
    The user's id

    Import

    A User can be imported via the OneLogin User ID.

    $ pulumi import onelogin:index/users:Users example 12345678
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    onelogin onelogin/terraform-provider-onelogin
    License
    Notes
    This Pulumi package is based on the onelogin Terraform Provider.
    onelogin logo
    onelogin 0.11.0 published on Friday, Aug 29, 2025 by onelogin