def get_assignment_detail(assignments):
    """
    Iterate over assignments detail from response.

    :param assignments: assignments detail from response.
    :return: list of assignment elements.
    """
    return [{
        'ID': assignment.get('id', ''),
        'FirstName': assignment.get('firstName', ''),
        'LastName': assignment.get('lastName', ''),
        'ReceiveEmails': assignment.get('receiveEmails', ''),
        'Email': assignment.get('email', ''),
        'Username': assignment.get('username', '')
    } for assignment in assignments]