Browse Source
Update listgroupsandmembers.py (#56)
Added test to skip groups if their id is a null strings
master
David Stern
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
46 additions and
44 deletions
-
listgroupsandmembers.py
|
|
|
@ -81,6 +81,8 @@ for group in groups: |
|
|
|
grouptype=group['type'] |
|
|
|
groupproviderid=group['providerId'] |
|
|
|
|
|
|
|
if groupid!="": # Skip groups with empty id (this has been seen at least once at a customer site), because we cannot fetch their members. |
|
|
|
|
|
|
|
# List the members of this group |
|
|
|
endpoint='/identities/groups/'+groupid+'/members?limit=10000' |
|
|
|
method='get' |
|
|
|
|