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 = 'https://serverfqn.gf.sugf.com:7443/arcgis' 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?