\OC_User::getDisplayName($userId) deprecated/ remove

Hi,

I am in the process of migrating my app to NextCloud 21. I noticed that the function ā€œ\OC_User::getDisplayName()ā€ no longer exists. Which function has replaced it?
I want to convert the user ID into the display name.

Hi,
did you found a way? Iā€™m struggling with the same issue. Thanks

You can query an IUser Object from IUserManager: Nextcloud PHP API (master)

and get the display name from the IUser Object: Nextcloud PHP API (master)