use correct IUser in interface
use UserSession service to resolve user id
Merge pull request #9644 from owncloud/fix_user_api

Fix user api