UserLookupInterface
interface UserLookupInterface (View source)
Read access to individual user accounts by id, name or email.
Methods
Get a user by ID
Get a user by username
Find a user by username
Get a user by email
Every active account registered to an email address, ordered by username.
Count how many users share the given email address.
Id of the active user with exactly this email address, accent-exact so a look-alike address from an identity provider cannot resolve to another account.
Id of a disabled user with exactly this email address, matched the same way as findActiveUserIdByEmail().
The columns external provisioning compares before writing.
Get a user's full name by ID
Full name of the user with exactly this username (accent-exact match), or null when there is none
The user's own zone limit: null when none is set (the configured default applies), 0 when the user may own no zones
findZoneLimit() for many users in one query
Details
array|null
getUserById(int $userId)
Get a user by ID
array|null
getUserByUsername(string $username)
Get a user by username
User|null
findByUsername(string $username)
Find a user by username
array|null
getUserByEmail(string $email)
Get a user by email
array
findActiveUsersByEmail(string $email)
Every active account registered to an email address, ordered by username.
int
countUsersByEmail(string $email)
Count how many users share the given email address.
int|null
findActiveUserIdByEmail(string $email)
Id of the active user with exactly this email address, accent-exact so a look-alike address from an identity provider cannot resolve to another account.
int|null
findInactiveUserIdByEmail(string $email)
Id of a disabled user with exactly this email address, matched the same way as findActiveUserIdByEmail().
array
getProvisioningProfile(int $userId)
The columns external provisioning compares before writing.
string|null
getFullNameById(int $userId)
Get a user's full name by ID
string|null
getFullNameByUsername(string $username)
Full name of the user with exactly this username (accent-exact match), or null when there is none
int|null
findZoneLimit(int $userId)
The user's own zone limit: null when none is set (the configured default applies), 0 when the user may own no zones
array
findZoneLimits(array $userIds)
findZoneLimit() for many users in one query