def combineUsers(users):
    """Combine user info into a string with known format."""
    res = []
    for user in users:
        userstr = user['name']
        if user.get('email'):
            userstr += ' <%s>' % user['email']
        if user.get('affiliation'):
            userstr += ' (%s)' % user['affiliation']
        res.append(userstr)
    return '; '.join(res)