What I meant is that, as it is explained, “Users not present in CSV file – Delete users that are not present in the CSV?” I’m not sure if users from other profiles will be deleted aswell.
Let’s say I have a site with 2 admins, 2 editors, 4 authors and 500 subscribers. The subscribers are updated from another tool outside WordPress (for example, a CRM, or another platform) and I want to update the list of subscribers. Most of them will be the same (should therefore be “updated”), some of them will be new (should therefore be “created”) and some of them not present anymore in the CSV (should therefore be “deleted”). The CSV file will also NOT include admins, editors, authors or users from other profiles, only subscribers.
What is not clear in the explanation is this: I can use the shortcode [import-users-from-csv-with-meta role=”subscriber”] or maybe use [import-users-from-csv-with-meta] and do the selection role=”subscriber” in the options section, ok. The problem is, what action is applied to users NOT included in the CSV AND still present in WordPress with other roles? In other words, will the import delete my editors / authors / admins? If this is the case, I would lose all the users belonging to other profiles, which is not great. But is still needed the option to delete subscribers no longer present in the CSV.
If I’m right, maybe there should be another option to manage this frequent scenario:
Users not present in CSV file:
– Delete users that are not present in the CSV?
– (if role-front != ‘Disable role assignment in frontend import’) Delete users BELONGING TO PROFILE=role-front that are not present in the CSV?
(this option also makes sense in tools.php?page=acui&tab=homepage and not only in tools.php?page=acui&tab=frontend, of course)
To sum up: I looks like the role options in your plugin only apply to the users been imported, not to users ALREADY present in WP. During my tests, all the published posts where trashed because ticking “Delete users that are not present in the CSV?” also deleted my authors. It looks natural that, if I select role=subscriber for the import action, only missing users with this role should be deleted, in my opinion.