UserAdminInterface
interface UserAdminInterface (View source)
Account administration: listing, creating, updating and deleting users and moving their zones.
Methods
Get the full names of all owners of a zone, comma-separated
Get a paginated list of users with zone counts
Get all users with the number of zones each one owns
Get detailed user list with template, group, and MFA info
Get total count of users in the system
Delete a user by ID
Get zones owned by a user
Transfer zone ownership from one user to another
Set the user's own zone limit; null removes it so the configured default applies
Lock the user's row until the open transaction ends, so zone limit checks for this user run one at a time
Insert a user created from an external identity (LDAP, OIDC or SAML).
Update the identity and template columns that external provisioning owns.
Assign permission template to a user
Check if a permission template exists
Details
string
getZoneOwnerFullNames(int $domainId)
Get the full names of all owners of a zone, comma-separated
array
getUsersList(int $offset, int $limit, string|null $search = null, array $sort = [])
Get a paginated list of users with zone counts
array
getUsersWithZoneCounts()
Get all users with the number of zones each one owns
array
getUserDetailList(bool $ldapUse, int|null $restrictToUserId, int|null $specific = null, int|null $limit = null, int|null $offset = null, string|null $search = null)
Get detailed user list with template, group, and MFA info
int
getTotalUserCount(int|null $restrictToUserId = null, string|null $search = null)
Get total count of users in the system
bool
deleteUser(int $userId, int|null $sharedTemplateHeir = null)
Delete a user by ID
array
getUserZones(int $userId)
Get zones owned by a user
bool
transferUserZones(int $fromUserId, int $toUserId)
Transfer zone ownership from one user to another
bool
setZoneLimit(int $userId, int|null $limit)
Set the user's own zone limit; null removes it so the configured default applies
void
lockForZoneLimit(int $userId)
Lock the user's row until the open transaction ends, so zone limit checks for this user run one at a time
int|null
createUser(CreateUserCommand $user)
Create a new user
bool
updateUser(int $userId, UpdateUserCommand $changes)
Update a user's information
int
createProvisionedUser(array $userData)
Insert a user created from an external identity (LDAP, OIDC or SAML).
void
updateProvisionedUser(int $userId, array $fields)
Update the identity and template columns that external provisioning owns.
bool
assignPermissionTemplate(int $userId, int $permTemplId)
Assign permission template to a user
bool
permissionTemplateExists(int $permTemplId, string|null $templateType = null)
Check if a permission template exists