def get_existing_groups()

in scripts/qs-users.py [0:0]


def get_existing_groups():
    existing_groups=[]

    response = client.list_groups(
    AwsAccountId=account_number,
    Namespace=namespace)

    for i in range (len(response['GroupList'])):
        existing_groups.append(response['GroupList'][i]['GroupName'].encode('utf-8')) 
    return existing_groups