Solution for Finding Users Not in O365 / Not Working for the Company Anymore / Offboarding Emails
In my case the solution needed to check all registered 'Authors' and 'Owners' of documents in a Sharepoint library, find any users that were no longer working for the company, and then send alert emails so new Owners or Authors could be assigned the documents.
The challenge was getting a Compare function to match users that were not found in the O365 tenancy, as using the Search For User function simply returned an empty object, which I couldn't then get the Condition function to recognise.
The answer was to use Compose function with the Length expression first to render an output integer for the length of the response to the user Search, which would then allow the Condition function to operate on it.
Solution