def METHOD_NAME(self, query_func: Callable) -> LdapGroupsSettingsV1:
    data = settings_query(query_func)
    if not data.settings:
        raise AppInterfaceSettingsError("No app-interface settings found.")
    if not data.settings[0].ldap_groups:
        raise AppInterfaceLdapGroupsSettingsError(
            "No app-interface ldap-groups settings found."
        )
    return data.settings[0].ldap_groups