Use pcapi function for retrieving the id of the user