You have an option that says: “Update users -> update also the role of existing users?”
And you can choose no.
I can’t get this setting to work:
I am using “Update roles for existing members” set to “No”, but what happens is:
1) No role field in CSV ; no default role specified ==> unsets the role
2) No role field in CSV ; a default role is specified ==> resets the role to default
3) Role field in CSV + no data specified ; no default role is specified ==> unsets the role
4) Role field in CSV + no data specified ; a default role is specified ==> unsets the role
It seems as if the role update setting is ignored.
Am I missing something here??
@rutech,
Are you using backend import?
I have just tested it and it works correctly.
Thread Starter
ascdev
(@ascdev)
Yes, I am using the backend importer.
I still cannot import meta data into an existing user without changing the user role.
I am using “Update roles for existing users” = “no”
I have disabled all plugins – so no plugin interaction.
Whenever I import a CSV file for an existing user, the role gets update to the default role.
Are you in a multisite? If not it cannot occur because plugin never will go in this line for existing users:
if( $created || $update_roles_existing_users != 'no' ){
@ascdev,
OK with multisite, I saw the problem and now it should be fixed.
Please update, check and let me know.
Thread Starter
ascdev
(@ascdev)
Yes, issue is now fixed. Brilliant.
Many thanks for the prompt resolution.