Here is the docs of modify extension interface: Plugins extension - Strapi Developer Docs
You can customize the function like this:
- create file ‘src/extensions/users-permissions/strapi-server.js’
- modify the function in this file, code :
module.exports = (plugin) => {
console.log(plugin.controllers.contentmanageruser.update.toString())
plugin.controllers.contentmanageruser.update = async (ctx) => {
console.log(ctx)
// you customize code here
}
console.log(plugin.controllers.contentmanageruser.update.toString())
return plugin
}
I think this should be work, you can have a try.