We have 2 flows that trigger from Microsoft form(s) to Resign or Terminate an employee.
As of 3 weeks ago, these flows worked fantastic at disabling the employee's account automatically.
Now, I am repeatedly getting the "Exception of type 'Microsoft.SharePoint.Client.ResourceNotFoundException' was thrown." error.
I know the account exists; I created it myself. I can see it both in O365 admin and Intune admin centers.
The form has the employee's email, so I use that for the UPN. The account the flow is done under has User Admin rights.
The purpose of the flow is to change the user's department and disable the account. The department change is picked up by a flow in Intune that deletes the account if it has the corresponding department (terminated or resigned)
Based off some questions I peeked at in the forum already, I did try a search for the user instead and link that to the get user action, but it throws the same error.
Including screenshots of the resignation flow (original and error) and termination flow (altered with search function)
Resignation flow and Error
Termination Flow (adjusted with Search function)