I want to write an impex to disable an account with an particular user-id which contains the particular email id. let's say if email [email protected] is associated with the user id xyx then xyz account should be soft disabled (loginDisabled should be true). For getting the xyz user-id i gonna run the flexi search :
select {emp.uid} as empid from { Employee as emp} where {emp.email} = '[email protected]'
this will return me the user-ids containing the email as [email protected]
and to disable a account i can run the impex as :
UPDATE Employee; UID[unique = true]; groups;loginDisabled[default=true];
xyz;;true
Now i want that both the Felxi serach and impex should be combined and the flexisearch should return the userid and impex part should disable the account, i have tried below impex but it didn't did anything:
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]'"");"
Thanks in advance for the help.
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: