AnsweredAssumed Answered

portalpy get_org_users() doesn't list groups or last login

Question asked by jgustine on Aug 14, 2015
Latest reply on Dec 22, 2015 by GSCUser85

I'm working on some scripts to manage our portal instances. I hit a snag trying to list users and groups they are part of. This simple script should do this, but only provides the username and then an empty list for the 'groups' key?


import portalpy

url = ''
portal = portalpy.Portal(url, "ADMINUSER", "PASSWORD")
print portal.get_version()
uDict = portal.get_org_users()
print uDict
for u in uDict:
    print u.get("username")
    print u.get("groups")


Anyone have any tips on accessing the 'groups' list?