弹性搜索iPEX内部
我想编写一个iPEX,以禁用包含特定电子邮件ID的特定用户ID帐户。 假设如果电子邮件
select {emp.uid} as empid from { Employee as emp} where {emp.email} = '[email protected]'
这将使我返回包含电子邮件的用户ID,href =“/cdn-cgi/l/li/email-email-pretection” class =“ __ cf_email__” data-cfemail __” data-cfemail =“ 1C6465665C7D7E7F327F7371”> [email  protected]
并禁用一个帐户,我可以运行iPex,因为
UPDATE Employee; UID[unique = true]; groups;loginDisabled[default=true];
xyz;;true
现在我希望将Felxi Serach和Impex都组合在一起,并且应该将flexisearch组合起来,并且应该返回userid and impex Part and impex Part禁用该帐户,我尝试了下面的iMpex,但没有做任何事情:
UPDATE Employee; UID[unique = true]; groups;loginDisabled[default=true]
"#% impex.exportItemsFlexibleSearch(""select {emp.uid} as empid from { Employee as emp} where {emp.email} = '[email protected]'"");"
事先感谢您的帮助。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我尝试运行
更新员工; pk [unique = true]; groups(uid); logIndisabled [default = true]“#%impex.exportItemsflexiblesearch(”“”从{emp}中选择{emp.pk},其中{emp}其中{ emp.email} ='
,但没有运气,没有任何问题就可以运行
I tried running
UPDATE Employee;PK[unique=True];groups(uid);loginDisabled[default=true] "#% impex.exportItemsFlexibleSearch("" SELECT {emp.pk} FROM { Employee AS emp} WHERE {emp.email} = '[email protected]' "");"
But no luck the impex is running without any issue but does not reflect the changes in backoffice
我建议使用一个时髦的脚本而不是灵活的搜索。
impex.exportitemsflexiblesearch
是仅用于导出的名称,因此您无法在导入中使用它。如果要使用Impex,则应首先使用impex.exportitemsflexiblesearch
导出,更改CSV中的值,然后再次重新介绍。I would suggest using a groovy script instead of flexible search.
The
impex.exportItemsFlexibleSearch
is, as the name say used for export only, so you are not be able to use it in import. If you want to use impex, then you should export first usingimpex.exportItemsFlexibleSearch
, change the value in the csv, then re-import it again.对不起,我误解了这个问题。我以为您正在尝试导出数据。
这就是您使用Impex禁用登录的方式:
I'm sorry I misunderstood the question. I thought you were trying to export the data.
This is how you disable the log-in using impex: