[Zope-CMF] How to get name of authenticated user?

Dieter Maurer dieter@handshake.de
Mon, 2 Sep 2002 19:07:23 +0200


Ruslan Spivak writes:
 > I need to get name of authenticated user from within zpt page inside
 > Plone.
 > There is class AuthenticatedUser and method getUserName, but I don't
 > know on what should I call it?
I used DocFinder 

  <http://www.dieter.handshake.de/pyprojects/zope>

to find:

   "python: portal_membership.getAuthenticatedMember().getUserName()"


But the "user" object is also a predefined name in ZPT.
You can use "user/getUserName".


Dieter