IAccountManager

interface OCP\Accounts\IAccountManager
Access user profile information
Implemented by:OC\Accounts\AccountManager
Source:lib/public/Accounts/IAccountManager.php#39

Constants

SCOPE_PRIVATE = v2-private
Contact details visible locally only
Source:lib/public/Accounts/IAccountManager.php#46
Since:21.0.1
SCOPE_LOCAL = v2-local
Contact details visible locally and through public link access on local instance
Source:lib/public/Accounts/IAccountManager.php#53
Since:21.0.1
SCOPE_FEDERATED = v2-federated
Contact details visible locally, through public link access and on trusted federated servers.
Source:lib/public/Accounts/IAccountManager.php#60
Since:21.0.1
SCOPE_PUBLISHED = v2-published
Contact details visible locally, through public link access, on trusted federated servers
and published to the public lookup server.
Source:lib/public/Accounts/IAccountManager.php#68
Since:21.0.1
VISIBILITY_PRIVATE = private
Contact details only visible locally
Source:lib/public/Accounts/IAccountManager.php#75
Deprecated:21.0.1
VISIBILITY_CONTACTS_ONLY = contacts
Contact details visible on trusted federated servers.
Source:lib/public/Accounts/IAccountManager.php#82
Deprecated:21.0.1
VISIBILITY_PUBLIC = public
Contact details visible on trusted federated servers and in the public lookup server.
Source:lib/public/Accounts/IAccountManager.php#89
Deprecated:21.0.1
PROPERTY_AVATAR = avatar
Source:lib/public/Accounts/IAccountManager.php#91
PROPERTY_DISPLAYNAME = displayname
Source:lib/public/Accounts/IAccountManager.php#92
PROPERTY_PHONE = phone
Source:lib/public/Accounts/IAccountManager.php#93
PROPERTY_EMAIL = email
Source:lib/public/Accounts/IAccountManager.php#94
PROPERTY_WEBSITE = website
Source:lib/public/Accounts/IAccountManager.php#95
PROPERTY_ADDRESS = address
Source:lib/public/Accounts/IAccountManager.php#96
PROPERTY_TWITTER = twitter
Source:lib/public/Accounts/IAccountManager.php#97
NOT_VERIFIED = 0
Source:lib/public/Accounts/IAccountManager.php#99
VERIFICATION_IN_PROGRESS = 1
Source:lib/public/Accounts/IAccountManager.php#100
VERIFIED = 2
Source:lib/public/Accounts/IAccountManager.php#101

Methods

public OCP\Accounts\IAccountManager::getAccount($user)
Get the account data for a given user
Source:

lib/public/Accounts/IAccountManager.php#111

Parameters:
Since:

15.0.0

Returns:

\OCP\Accounts\IAccount

public OCP\Accounts\IAccountManager::updateAccount($account)
Update the account data with for the user
Source:

lib/public/Accounts/IAccountManager.php#121

Parameters:
Since:

21.0.1

Throws:

\InvalidArgumentException Message is the property that was invalid

public OCP\Accounts\IAccountManager::searchUsers($property, $values)
Search for users based on account data
Source:

lib/public/Accounts/IAccountManager.php#132

Parameters:
  • $property (string)
  • $values (string[])
Returns:

array

Since:

21.0.0