• Resolved estoespersonal

    (@estoespersonal)


    Hi
    I’m trying to do my best to import users with their roles following your test template, but I’m failing.

    what I’ve tried is the following:
    user_login,Email,Password,roles
    paco,[email protected],Password,adminstrator
    pedro,[email protected],Password,Suscriptor
    fran,[email protected],Password,CustomRole1
    romi,[email protected],Password,CustomRole2

    I’m trying to insert the role in the column ‘roles’ as you can see the first two roles are the once predetermined by wordpress but the other two are customized roles.
    The insert instruction only records the user name, email and password but not the role.
    What I’m doing wrong???

    Gracias de antemano.
    Un saludo
    Luis

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

    (@carazo)

    @estoespersonal,

    ¿Has probado a usar los slugs de los roles? ¿En vez de sus títulos?

    Plugin Author Javier Carazo

    (@carazo)

    We close this thread because we have no answers in more than a month and it should be solved.

    Thread Starter estoespersonal

    (@estoespersonal)

    Hola Javier

    Discúlpame por no responder, probé también con los slugs de los roles pero no había manera. Lo que hice fue dividir la carga de los usuarios, primero escogí el rol de CustomRole1 y cargué los 20 usuarios. Luego cargué los 50 usuarios del CustomRole2 poniendo por defecto de asignación ese rol (CustomRole2). Tenía un poco de prisa por hacerlo y manejar otras cosas así que no seguí investigando.

    Plugin Author Javier Carazo

    (@carazo)

    Ok, me alegro que lo resolvieras aunque fuera de esa manera.

    Un saludo,

    Javier

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

The topic ‘Import user with customized role’ is closed to new replies.