Hi,
I have a df with cl1 and cl2. cl1 displays the group name and cl2 the users which should be added to the group in cl1.
I am trying to loop through the df but got issues when the users should be added to the group.
Also when I leave out the index at groups.add_users(), it gives me the error:
'list' object has no attribute 'add_users'
for i in df['c1']:
groups = gis.groups.search('title: "'+i+'"', '')
print(groups)
for row in df['c2']:
for i in groups:
groups[i].add_users(row)e.g.:
| cl1 | cl2 |
| group_xy | user_1, user_2 |
| group_b | user_3, user_4, user_5 |
Am I forgetting something? Would be very grateful if anyone know of a solution or what I am doing wrong.
Thank you!