• Resolved ascdev

    (@ascdev)


    I am using this plugin to bulk update meta-data for existing users.

    However the update always changes the user role, either to the default role or a specified role – depending on settings or role data in the import file.

    Is there any way to leave the existing role(s) intact?
    Maybe the same way as meta data is left unchanged in the field is declared but empty?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Javier Carazo

    (@carazo)

    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??

    Plugin Author Javier Carazo

    (@carazo)

    @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.

    Plugin Author Javier Carazo

    (@carazo)

    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' ){
    
    Thread Starter ascdev

    (@ascdev)

    Yes, I’m on a multisite

    Plugin Author Javier Carazo

    (@carazo)

    @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.

    Plugin Author Javier Carazo

    (@carazo)

    Thanks to you!

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘How to not update role for existing users?’ is closed to new replies.