Added support for user permissions