Permissions fixes for impersonating