AnsweredAssumed Answered

Access user group membership through REST API using agoTools and Python

Question asked by BrackeH on Sep 5, 2014
Latest reply on Sep 16, 2014 by BrackeH

I'm trying to access the user['groups'] property using a python script that calls the getUsers from agoTools.  I can access the users and get information, but the 'groups' property (described as a json array) seems to be empty?  I may just be accessing it incorrectly.


I am assigning the 'groups' property to a numpy array but the array comes up empty.  Any suggestions?


for user in users:

    UserGroupList = numpy.array(user['groups'])

    print UserGroupList.shape


produces a long list of: