from typing import List
from typing import Dict
from typing import Any


def prepare_user_details_get_output(users_records: List[Dict[str, Any]]) -> List[Dict[str, Any]]:
    """
    Prepares context output for user_details_get command.

    :param users_records: List containing dictionaries of user records.
    :return: prepared context output list.
    """
    return [{'Id': record.get('Id', ''),
             'Name': record.get('Name', ''),
             'FirstName': record.get('FirstName', ''),
             'LastName': record.get('LastName', ''),
             'Username': record.get('Username', ''),
             'Email': record.get('Email', ''),
             'Phone': record.get('Phone', ''),
             'Account': record.get('BMCServiceDesk__Account_Name__c', ''),
             'CompanyName': record.get('CompanyName', ''),
             'Division': record.get('Division', ''),
             'Department': record.get('Department', ''),
             'Title': record.get('Title', ''),
             'IsStaff': record.get('BMCServiceDesk__IsStaffUser__c', ''),
             } for record in users_records]