NC how to check if logged in user is admin or not in vue js

Hi,
Is there anyway to check whether the logged in user using the app is an admin or not ? I checked with

IUser class

but could not find any specific function regarding to it… neither could I find anything in any other class except User but no idea how I can call it and check with vue js and php.
Any help is appreciated, thanks.

You have to get the OCP\IGroupManager, it has a isAdmin function