creating users from a text file in Plone : how ?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jean-Francois Boisvieux

    #1

    creating users from a text file in Plone : how ?

    the subject is the question, anybody could provide me a pointer on this
    subject ?

    Thanks

    JF
  • Duncan Booth

    #2
    Re: creating users from a text file in Plone : how ?

    Jean-Francois Boisvieux wrote:
    [color=blue]
    > the subject is the question, anybody could provide me a pointer on this
    > subject ?[/color]

    You should always put the question in the body of the message. Not all
    newsreaders make it easy to see the subject when the body is displayed.

    Posting to one of the Plone lists is more likely to get you a comprehensive
    answer, but:

    Subject: creating users from a text file in Plone : how ?

    Use:

    acl_users.chang eOrCreateUsers( new_users=listo fUserIds,
    default_passwor d=whatever, REQUEST=REQUEST )

    to create a list of users, then iterate through them calling

    user = portal_membersh ip.getMemberByI d(userid)
    user.setMemberP roperties({'ema il':email, 'fullname':full Name})

    to get the user object and set the fullname and email.

    Comment

    Working...