ModelUsers module
User
A model in the Users module, with 43 members for templates, 37 API properties and 48 members for admin templates.
Templates view
Properties 34
Take no arguments.
-
#
isAdmin() -
bool - Check whether the user is an admin. Doesn't check if he is an admin for the current site. Also returns true if the user is a developer or a superadmin.
-
#
isSuperAdmin() -
bool - Check whether the user is a superadmin. Also returns true if the user is a developer.
-
#
getId() -
?int -
#
getType() -
?string -
#
getStatus() -
?string -
#
getUsername() -
?string -
#
getGlobalUser() -
?GlobalUser -
#
getSettings() -
?Collection<Setting> -
#
getConfirmPassword() -
?string -
#
getApiKeys()Not in API & Jobs -
?Collection<ApiKey> -
#
getLoginTokens() -
?Collection<LoginToken> -
#
getRefreshTokens()Not in API & Jobs -
?Collection<RefreshToken> -
#
getUserAuthenticators() -
?Collection<UserAuthenticator> -
#
getUserOauthClients() -
?Collection<UserOauthClient> -
#
getCustomFieldValues() -
?Collection<UserCustomFieldValue> -
#
getExternalId() -
?string -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
Methods 9
Take arguments. The API serialises only getters that need none.
-
#
getCustomFieldValueByName(string $customFieldName) -
?CustomFieldValue - Get the value for a custom field by the custom field name
-
#
getCustomFieldContent(string $customFieldName) -
?Content - Get the content for the custom field identified by the specified name
-
#
getCustomFieldContentOrDefault(string $customFieldName) -
?Content - Get the (default) content for the custom field identified by the specified name
-
#
getCustomFieldBoolean(string $customFieldName, ?bool $default) -
?bool - Get the (default) content of the custom field as boolean value
-
#
getCustomFieldText(string $customFieldName, ?string $default) -
?string - Get the (default) content of the custom field as text
-
#
getCustomFieldImage(string $customFieldName) -
?Image - Get the (default) image contained in the custom field
-
#
getCustomFieldFile(string $customFieldName) -
?File - Get the (default) file contained in the custom field
-
#
hasCustomField(string $customFieldName) -
bool - Check if the entity has a custom field with the specified name
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 37
Read-only values on the record.
-
#
admin -
bool - Check whether the user is an admin. Doesn't check if he is an admin for the current site. Also returns true if the user is a developer or a superadmin.
-
#
superAdmin -
bool - Check whether the user is a superadmin. Also returns true if the user is a developer.
-
#
id -
?int -
#
type -
?string -
#
status -
?string -
#
username -
?string -
#
globalUser -
?GlobalUser -
#
settings -
?Collection<Setting> -
#
confirmPassword -
?string -
#
loginTokens -
?Collection<LoginToken> -
#
userAuthenticators -
?Collection<UserAuthenticator> -
#
userOauthClients -
?Collection<UserOauthClient> -
#
customFieldValues -
?Collection<UserCustomFieldValue> -
#
customFieldContent -
object - Get a serialized representation of the custom fields associated with the record
-
#
externalId -
?string
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 39
Take no arguments.
-
#
isAdmin() -
bool - Check whether the user is an admin. Doesn't check if he is an admin for the current site. Also returns true if the user is a developer or a superadmin.
-
#
isSuperAdmin() -
bool - Check whether the user is a superadmin. Also returns true if the user is a developer.
-
#
getId() -
?int -
#
getType() -
?string -
#
getStatus() -
?string -
#
getUsername() -
?string -
#
getGlobalUser() -
?GlobalUser -
#
getSettings() -
?Collection<Setting> -
#
getConfirmPassword() -
?string -
#
getApiKeys()Not in API & Jobs -
?Collection<ApiKey> -
#
getLoginTokens() -
?Collection<LoginToken> -
#
getRefreshTokens()Not in API & Jobs -
?Collection<RefreshToken> -
#
getUserAuthenticators() -
?Collection<UserAuthenticator> -
#
getUserOauthClients() -
?Collection<UserOauthClient> -
#
getCustomFieldValues() -
?Collection<UserCustomFieldValue> -
#
getExternalId() -
?string -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
-
#
getFullNameOrUsername()Admin only -
string - Displays the user's full name or username in select fields (like Owner).
Methods 9
Take arguments. The API serialises only getters that need none.
-
#
getCustomFieldValueByName(string $customFieldName) -
?CustomFieldValue - Get the value for a custom field by the custom field name
-
#
getCustomFieldContent(string $customFieldName) -
?Content - Get the content for the custom field identified by the specified name
-
#
getCustomFieldContentOrDefault(string $customFieldName) -
?Content - Get the (default) content for the custom field identified by the specified name
-
#
getCustomFieldBoolean(string $customFieldName, ?bool $default) -
?bool - Get the (default) content of the custom field as boolean value
-
#
getCustomFieldText(string $customFieldName, ?string $default) -
?string - Get the (default) content of the custom field as text
-
#
getCustomFieldImage(string $customFieldName) -
?Image - Get the (default) image contained in the custom field
-
#
getCustomFieldFile(string $customFieldName) -
?File - Get the (default) file contained in the custom field
-
#
hasCustomField(string $customFieldName) -
bool - Check if the entity has a custom field with the specified name
No members match the filter.