When importing from CSV handling non existed user and check user's permissions.

#4230