[Zope] Accessing the User properties from portal_membership tool

Dieter Maurer dieter at handshake.de
Mon Aug 11 21:27:07 EDT 2003


It would have been better to ask this CMF related question in the
CMF mailing list (<mailto:zope-cmf at zope.org>).

Karuneesh Bagga wrote at 2003-8-11 14:09 +0530:
 > ...
 > The function  getAuthenticatedMember returns the member object by which i am
 > able to access the currently logged in user properties like his email etc.

You can use the "MembershipTool" method "getMemberById" to obtain
a "MemberData" object for a member identified by it id (aka "username").
This method is protected by the "ManagePortal" permission. Thus,
you may need a proxie role.

Then you can use the "MemberData" method "setProperties" to modify
the properties for this member.


Dieter



More information about the Zope mailing list