UserInterface¶
-
interface
OCP\UserInterface¶ - TODO actually this is a IUserBackend
Implemented by: OCP\User\Backend\ABackendOC\User\BackendSource: lib/public/UserInterface.php#42
Methods¶
-
public
OCP\UserInterface::implementsActions($actions)¶ - Check if backend implements actions
Source: Parameters: - $actions (int) bitwise-or’ed actions
Returns: bool Returns the supported actions as int to be compared with \OC\User\Backend::CREATE_USER etc.
Since: 4.5.0
Deprecated: 14.0.0 Switch to the interfaces from OCP\User\Backend
-
public
OCP\UserInterface::deleteUser($uid)¶ - delete a user
Source: Parameters: - $uid (string) The username of the user to delete
Returns: bool
Since: 4.5.0
-
public
OCP\UserInterface::getUsers($search="", $limit=null, $offset=null)¶ - Get a list of all users
Source: Parameters: - $search (string)
- $limit (null | int)
- $offset (null | int)
Returns: string[] an array of all uids
Since: 4.5.0
-
public
OCP\UserInterface::userExists($uid)¶ - check if a user exists
Source: Parameters: - $uid (string) the username
Returns: bool
Since: 4.5.0
-
public
OCP\UserInterface::getDisplayName($uid)¶ - get display name of the user
Source: Parameters: - $uid (string) user ID of the user
Returns: string display name
Since: 4.5.0
-
public
OCP\UserInterface::getDisplayNames($search="", $limit=null, $offset=null)¶ - Get a list of all display names and user ids.
Source: Parameters: - $search (string)
- $limit (int | null)
- $offset (int | null)
Returns: array an array of all displayNames (value) and the corresponding uids (key)
Since: 4.5.0
-
public
OCP\UserInterface::hasUserListings()¶ - Check if a user list is available or not
Source: lib/public/UserInterface.php#107 Returns: bool if users can be listed or not Since: 4.5.0