Search code examples
plonezopezodb

Get User Information from ZODB


I am trying to get information out of my Plone site regarding Users. It is relatively easy to get info out of the portal_catalog. However, user info isn't in the portal_catalog.

Can somebody tell me how to get user info out of the ZODB from my Plone site? Basically, I am looking to get back a list of user ids.

Thanks!


Solution

  • There's also the portal_membership tool. For example, you could do:

    utool=context.portal_url
    portal=utool.getPortalObject()
    mtool=portal.portal_membership
    members=mtool.getRoster()