User

The user object contains information about a user record.

All users have member records in People & Organizations. You may set contact information and add other details to user records -- useful for pulling contact details through to documents.

Members

Contacts, organizations, vehicles, venues, and users are all known as members in the database. Members have some shared attributes, along with attributes that are specific to that particular member type.

When you're checking a list of members, you can use the type object to determine what type of member you're working with.

For example, the participants object against an opportunity returns participant objects for any members who are participants on the opportunity. To print only users:

<ul>
  {% for participant in order.participants %}
    {% if participant.type == "User" %}
      <li>{{ participant.name }}</li>
    {% endif %}
  {% endfor %}
</ul>

Objects that return users

In most documents and discussion templates, you may use:

current_user

Returns information about the logged-in user.

{{ current_user.name }}

owner_user

Returns information about the owner user of a record:

Document layouts

The user object can be accessed in document layouts created against the following modules:

Member

From a user record:

Opportunity

To print users that are a participant against an opportunity:

To print users that are sub-contract suppliers for service bookings:

Project

To print users that are a participant against a project:

Purchase order

To print information about the user who authorized a purchase order:

Discussion templates

The user object can be accessed in discussion templates created against the following modules:

Member

From a venue record:

Opportunity

To print users that are a participant against an opportunity:

To print users that are sub-contract suppliers for service bookings:

Project

To print users that are a participant against a project:

Purchase order

To print information about the user who authorized a purchase order:

activities

Returns activity objects for the activities relating to a user.

Input

Output

Activity

address

Returns a user's primary address.

Input

Output

address_detail

Returns address objects for a user's primary address.

Input

Output

Address detail

attachments

Returns attachment objects for attachments stored against a user.

Input

Output

Attachments

description

Returns a user's description.

Input

Output

email

Returns the first work email address stored against a user.

Input

Output

emails

Returns email objects for email addresses stored against a user.

Input

Output

Emails

icon_url

Returns a URL pointing at the user's picture. The full size image is returned.

Input

Output

image_attachments

Returns attachment objects for attachments stored against a user. Only returns those that have a file type of image.

Input

Output

Attachments

id

Returns a user's ID.

The ID is an internal reference for a record. It's not exposed in our web interface.

Input

Output

lawful_basis_type_id

Returns the legal basis type ID for a user.

Type

Legal basis type

11001

Legitimate interest - prospect

11002

Legitimate interest - existing customer

11003

Performance of a contract

11004

Freely given consent

11005

Employee

11006

Unknown

Input

Output

lawful_basis_type_name

Returns a user's legal basis type name.

You may add legal basis types in System Setup > List of Values.

  • Legitimate interest - prospect

  • Legitimate interest - existing customer

  • Performance of a contract

  • Freely given consent

  • Employee

  • Unknown

Input

Output

live_purchase_orders

Returns purchase order objects for purchase orders against a user. Only live purchase orders are returned.

Input

Output

mobile

Returns a user's cell phone number. The first telephone number with the type “cell” or “mobile” is returned.

Input

Output

name

Returns a user's name.

Input

Output

phones

Returns telephone objects for telephone numbers stored against a user.

Input

Output

Phones

telephone

Returns a user's telephone. The first telephone number with the type “work” is returned.

Input

Output

title

Returns a user's title.

Input

Output

Last updated

Was this helpful?