Is it possible to use the user information of a user that creates an entity?
If a user creates an entity, they want me to automatically fill in their name in the report.
And on that topic, can I also use the name of the user that has saved the entity for the last time.
To distinguish between
“Project created by:”
“Project adjusted by:”
As far as I know it is currently only possible to get the info of the current user (
api_v1.API.get_current_user()), not the creator nor the last modifier.
If I use the get_current_user() function, I get the message:
get_current_user() takes exactly one argument (0 given)
Is there something I don’t understand in de documentation?
You have to instantiate the API:
api = API()
current_user = api.get_current_user()