How to provide sftp access to an app?

Hi

I want sftp access like my_webapp provides, to all other apps like wordpress,joomla, etc.
As there is either www-data or a dedicated app user which have owner and group rights to the app folder in the/var/www/app.
So how can I create a user and give sftp rights to the folder while maintaining the ownership of the app folder?