Hi, we've had a flow running happily for over a year triggered by a new user being added to a group.
The UID of the new account in the group is used by Get User Profile (v2) to return the user name etc. Later actions update lists, send emails etc.
At some point in the last couple of months, the action Get User Profile (v2) has stopped being able to get the details of new accounts, reporting the error:
Action 'Get_user_profile_(V2)' failed: Exception of type 'Microsoft.SharePoint.Client.ResourceNotFoundException' was thrown.
I've run some tests comparing the Get User Profile (v2) behaviour (a manually triggered flow withonly that action and a hard-coded UID or UPN) and there is clearly a difference between recently created accounts and older ones. The UIDs being passed for all our failing flows are valid. The accounts in question are enabled and licensed. A side-by-side comparison of account properties didn't find any inconsistencies.
I've also tried creating a new account copying an existing one that does work, in case something has changed in our account creation that has broken things. The copied account also failed.
Bit stumped* at this point, so any pointers for places to look would be appreciated.
Addendum - we do most account management on-prem with AD and syncing to AAD (sorry, Entra). On a hunch I created a fresh account in Entra and tested Get User Profile accessing this - it still failed, so I've ruled out some oddity relating to AD.
Failing test flow:
Raw output:
* tearing my hair out