#488 Added permission management for users (to revoke permissions granted to applications)