def get_payload(self, search_filter, expand_group_membership):
    payload = create_element(f'm:{self.SERVICE_NAME}')
    if search_filter:
        add_xml_child(payload, 'm:SearchFilter', search_filter)
    if (expand_group_membership is not None):
        add_xml_child(payload, 'm:ExpandGroupMembership', ('true' if expand_group_membership else 'false'))
    return payload
def get_payload(self, search_filter, expand_group_membership):
    payload = create_element(f'm:{self.SERVICE_NAME}')
    if search_filter:
        add_xml_child(payload, 'm:SearchFilter', search_filter)
    if (expand_group_membership is not None):
        add_xml_child(payload, 'm:ExpandGroupMembership', ('true' if expand_group_membership else 'false'))
    return payload