@theredspace/spp-client
    Preparing search index...

    Interface User

    interface User {
    account_workscheduleid : number ;
    acct_code : string ;
    active : number ;
    addr : {
    addr1 : string ;
    addr2 ?: string ;
    addr3 ?: string ;
    addr4 ?: string ;
    city : string ;
    contact_id ?: string ;
    country : string ;
    email : string ;
    fax ?: string ;
    first : string ;
    id ?: string ;
    last : string ;
    middle ?: string ;
    mobile ?: string ;
    phone ?: string ;
    salutation ?: string ;
    state : string ;
    zip : string ;
    } ;
    az_approvalprocess : string ;
    az_approver : string ;
    bccSelf ?: number ;
    book_assign_stamp : string ;
    br_approvalprocess : string ;
    br_approver : string ;
    budgetApprovalProcess ?: string ;
    budgetApprover ?: string ;
    code : string ;
    cost : string ;
    cost_centerid : string ;
    cost_currency : string ;
    cost_end_date : DateContainer ;
    cost_lc_level : string ;
    cost_start_date : DateContainer ;
    created ?: DateContainer ;
    currency : string ;
    customerId ?: string ;
    cv_attachment_id : string ;
    defaultSamlSettingsName ?: string ;
    departmentid : string ;
    dr_approvalprocess : string ;
    dr_approver : string ;
    external_id : string ;
    externalid : string ;
    filterset_ids : string ;
    filterset_stamp : string ;
    generic : number ;
    hierarchy_node_ids : string ;
    hint : string ;
    id : number ;
    is_user_schedule : string ;
    job_codeid : number ;
    km_filter_set : string ;
    line_managerid ?: string ;
    locked : string ;
    logintime ?: DateContainer ;
    ma_filter_set : string ;
    mfa_status : string ;
    mfaSetupDate ?: DateContainer ;
    name : string ;
    nickname : string ;
    om_filter_set : string ;
    password : string ;
    password_forced_change : string ;
    payroll_code : string ;
    pb_approvalprocess : string ;
    picklist_label : string ;
    pm_filter_set : string ;
    po_approvalprocess : string ;
    po_approver : string ;
    po_filter_set : string ;
    pr_approver : string ;
    primary_filter_set : string ;
    project_access_nodes : string ;
    rate : number ;
    report_filter_set : string ;
    rm_approvalprocess : string ;
    rm_approver : string ;
    rm_filter_set : string ;
    role_id : string ;
    rpc_updated_by : string ;
    rpc_user_updated : DateContainer ;
    sr_approvalprocess : string ;
    sr_approver : string ;
    ssn : string ;
    ta_approvalprocess : string ;
    ta_approver : string ;
    ta_filter_set : string ;
    tag_end_date : DateContainer ;
    tag_group_attribute_id : string ;
    tag_group_id : string ;
    tag_start_date : DateContainer ;
    tb_filter_set : string ;
    te_allowance_approvalprocess : string ;
    te_allowance_approver : string ;
    te_approvalprocess : string ;
    te_approver : string ;
    te_filter_set : string ;
    territoryId ?: string ;
    timezone : string ;
    type : string ;
    update_cost : string ;
    update_tag : string ;
    update_workschedule : string ;
    updated : DateContainer ;
    user_locationid : string ;
    week_starts ?: number ;
    workschedule_workdays : string ;
    workschedule_workhours : string ;
    workscheduleid : number ;
    }
    Index

    Properties

    account_workscheduleid : number
    acct_code : string
    active : number
    addr : {
    addr1 : string ;
    addr2 ?: string ;
    addr3 ?: string ;
    addr4 ?: string ;
    city : string ;
    contact_id ?: string ;
    country : string ;
    email : string ;
    fax ?: string ;
    first : string ;
    id ?: string ;
    last : string ;
    middle ?: string ;
    mobile ?: string ;
    phone ?: string ;
    salutation ?: string ;
    state : string ;
    zip : string ;
    }
    az_approvalprocess : string
    az_approver : string
    bccSelf ?: number
    book_assign_stamp : string
    br_approvalprocess : string
    br_approver : string
    budgetApprovalProcess ?: string
    budgetApprover ?: string
    code : string
    cost : string
    cost_centerid : string
    cost_currency : string
    cost_end_date : DateContainer
    cost_lc_level : string
    cost_start_date : DateContainer
    created ?: DateContainer
    currency : string
    customerId ?: string
    cv_attachment_id : string
    defaultSamlSettingsName ?: string
    departmentid : string
    dr_approvalprocess : string
    dr_approver : string
    external_id : string
    externalid : string
    filterset_ids : string
    filterset_stamp : string
    generic : number
    hierarchy_node_ids : string
    hint : string
    id : number
    is_user_schedule : string
    job_codeid : number
    km_filter_set : string
    line_managerid ?: string
    locked : string
    logintime ?: DateContainer
    ma_filter_set : string
    mfa_status : string
    mfaSetupDate ?: DateContainer
    name : string
    nickname : string
    om_filter_set : string
    password : string
    password_forced_change : string ;
    payroll_code : string
    pb_approvalprocess : string
    picklist_label : string
    pm_filter_set : string
    po_approvalprocess : string
    po_approver : string
    po_filter_set : string
    pr_approver : string
    primary_filter_set : string
    project_access_nodes : string
    rate : number
    report_filter_set : string
    rm_approvalprocess : string
    rm_approver : string
    rm_filter_set : string
    role_id : string
    rpc_updated_by : string
    rpc_user_updated : DateContainer
    sr_approvalprocess : string
    sr_approver : string
    ssn : string
    ta_approvalprocess : string
    ta_approver : string
    ta_filter_set : string
    tag_end_date : DateContainer
    tag_group_attribute_id : string
    tag_group_id : string
    tag_start_date : DateContainer
    tb_filter_set : string
    te_allowance_approvalprocess : string
    te_allowance_approver : string
    te_approvalprocess : string
    te_approver : string
    te_filter_set : string
    territoryId ?: string
    timezone : string
    type : string
    update_cost : string
    update_tag : string
    update_workschedule : string
    updated : DateContainer
    user_locationid : string
    week_starts ?: number
    workschedule_workdays : string
    workschedule_workhours : string
    workscheduleid : number

    Usage and Permissions

    Listing Users:

    • Use the list() or batchList() methods on SPPClient to retrieve User objects.

    Creating Users:

    • To add new users, you must use the `CreateUser` (XML API) or `createUser()` (SOAP API) command. Do not use the generic `Add` or `add()` command for `User` objects.
    • Permissions: You must be authenticated as an account administrator or have the "View, modify, and create new users" role permission to use the `CreateUser` command.
    • Required Properties for `CreateUser`:
      • `nickname`: The user's unique nickname.
      • `addr.email`: The user's email address.
      • `password`: Required, unless creating a generic user (`generic` set to 1).
      • `role_id`: The internal ID of the role associated with the user. Defaults to the default role if not set.
      • `Company` object: Must be specified as an argument, identifying the company the user is being added to.
      • `User` object: The user object itself must be specified as an argument.
    • Important Notes for Creation:
      • If `SAML` authentication is used, a password can be set when creating a new user if the Boolean custom field `saml_auth__c` is set to `true`.
      • The `CreateUser` command does not support foreign key lookup.
      • Limits are enforced to prevent creating or activating users if doing so would exceed the number of user licenses purchased for your account. If no user licenses of the appropriate type are available, the `CreateUser` command creates a new user record but sets it as inactive.

    Updating Users:

    • You can use the update() method on SPPClient to update a User object.
    • Permissions: To modify a user record (other than the authenticated user's own record), the authenticated user must be an administrator or have the "View, modify, and create new users" or "View and modify users" role permission. All authenticated users can modify their own user record without these specific role permissions.
    • User settings (`flags`) can only be modified by an administrator.
    • If `SAML` authentication is enabled for a user, passwords cannot be modified when updating an existing user record.
    • When adding or modifying a user, you can also update:
      • Loaded cost information (using `update_cost: 1`).
      • Entity tag information (using `update_tag: 1`).
      • Work schedule information (using `update_workschedule: 1`).

    Reading Users:

    • You can use the `Read` (XML API) or `read()` (SOAP API) command to retrieve User objects.
    • The `generic` attribute can be set to `1` when reading `User` objects to return only generic resources.

    Deleting Users:

    • You can use the `Delete` (XML API) or `delete()` (SOAP API) command to delete a User object.
    • Permissions: Specific permissions apply for deleting user records.

    Important: Business rules configured for your company's SuiteProjects Pro account are applied when an integration application interacts with your SuiteProjects Pro data through the REST API. However, they are not applied when interacting through the SOAP API or XML API, where developers must enforce business rules within their integration application if required.