aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/IUserManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/IUserManager.php')
-rw-r--r--lib/public/IUserManager.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/public/IUserManager.php b/lib/public/IUserManager.php
index e5c220af40c..da7d477ad43 100644
--- a/lib/public/IUserManager.php
+++ b/lib/public/IUserManager.php
@@ -85,6 +85,17 @@ interface IUserManager {
public function get($uid);
/**
+ * Get the display name of a user
+ *
+ * Note that this will return the uid if the user is not found instead of throwing an exception
+ *
+ * @param string $uid
+ * @return string
+ * @since 25.0.0
+ */
+ public function getDisplayName(string $uid): string;
+
+ /**
* check if a user exists
*
* @param string $uid