creating users from a text file in Plone : how ?

  • Thread starter Jean-Francois Boisvieux
  • Start date
J

Jean-Francois Boisvieux

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

Thanks

JF
 
D

Duncan Booth

Jean-Francois Boisvieux said:
the subject is the question, anybody could provide me a pointer on this
subject ?

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.changeOrCreateUsers(new_users=listofUserIds,
default_password=whatever, REQUEST=REQUEST)

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

user = portal_membership.getMemberById(userid)
user.setMemberProperties({'email':email, 'fullname':fullName})

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top