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
current_userReturns information about the logged-in user.
{{ current_user.name }}owner_user
owner_userReturns 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
activitiesReturns activity objects for the activities relating to a user.
Input
Output
Activityaddress
addressReturns a user's primary address.
Input
Output
address_detail
address_detailReturns address objects for a user's primary address.
Input
Output
Address detailattachments
attachmentsReturns attachment objects for attachments stored against a user.
Input
Output
Attachmentsdescription
descriptionReturns a user's description.
Input
Output
email
emailReturns the first work email address stored against a user.
Input
Output
emails
emailsReturns email objects for email addresses stored against a user.
Input
Output
Emailsicon_url
icon_urlReturns a URL pointing at the user's picture. The full size image is returned.
Input
Output
image_attachments
image_attachmentsReturns attachment objects for attachments stored against a user. Only returns those that have a file type of image.
Input
Output
Attachmentsid
idReturns 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
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
lawful_basis_type_nameReturns 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
live_purchase_orders Returns purchase order objects for purchase orders against a user. Only live purchase orders are returned.
Input
Output
mobile
mobileReturns a user's cell phone number. The first telephone number with the type “cell” or “mobile” is returned.
Input
Output
name
nameReturns a user's name.
Input
Output
phones
phonesReturns telephone objects for telephone numbers stored against a user.
Input
Output
Phonestelephone
telephoneReturns a user's telephone. The first telephone number with the type “work” is returned.
Input
Output
title
titleReturns a user's title.
Input
Output
Last updated
Was this helpful?