[solved] Get User Information

Hi,

I’m new in coding a nextcloud app, soo i’m sorry for my stupide question :). I haven’t understand the documentation about the possibility to retrieve users information.

My need : Get User Name and Lastname.

The documentation I have read :

https://docs.nextcloud.com/server/15/developer_manual/app/users.html

My questions :

  • How to retrieve this information from my index controler (basic controler provided by the app generator) ?

Thank you soo much for your futur help

My environment :
NEXTCLOUD 15
DOCKER SWARM
RASPBERRY PI 3B
TRAEFIK AS REVERSE PROXY

Ok I find my self, there’is something magical in this framework.

  • Just add in the folder lib your code as in the documentaton
  • Instanciate it in the controler as un argument une the constructor
  • After, you can access all the methods

Thanks everybody