Managing permissions and access control lists