def get_sec_groups_name_and_id(groups=None):
    """
    @type groups: list
    """
    ret = []
    for group in groups:
        ret.append('GroupName:{0}\nGroupId:{1}'.format(group.get(
            'GroupName', '-'), group.get('GroupId', '-')))
    return '\n'.join(ret).rstrip()
