How to retrieve user name from webplugin?

  • 31 May 2021
  • 1 reply

Userlevel 2
Badge +2

Is there any way to retrieve current user name with web plugin API, I see that there is an interface IUserInfo for user data, but not seeing how it can be fetched with API.


Best answer by Anthony Roux 2 June 2021, 09:54

View original

1 reply

Userlevel 4
Badge +6

Hi @Ramkumar,


Please note that what is described below is an undocumented feature and might be updated/removed in the future:


You can find information about the current user by calling the method:

await miro.board.getInfo()

In the response > currentUserContext > user > name