def get_assignment_details(app_detail_result):
    """
    Method to fetch smart group ids, names and push mode where the app has been deployed
    :param app_detail_result: json returned from the app details api
    :return: list of smart group ids, list of smart group names and push mode
    """

    assignments = app_detail_result['Assignments']
    sg_ids = [groups['SmartGroupId'] for groups in assignments]
    sg_names = [groups['SmartGroupName'] for groups in assignments]
    push_mode = [groups['PushMode'] for groups in assignments]

    return sg_ids, sg_names, push_mode