Hello, I am trying to reset the accounts and entitlements from an Azure AD source. I was able to remove all the entitlements from the source successfully but when I tried to execute the API /sources/:id/remove-accounts, I am getting the below error
“Source Owners account exists on source”.
I ensured that the owner name listed for the source doesn’t have an account in the Azure AD source. How do I remove all the accounts from the Azure AD source ?
BTW, I also tried it through the VSCode extension but the extension is also giving an error when I try to reset the source or accounts. It only works for entitlements.
This error happens when any identity that owns any source in the tenant also has an account on the source you are trying to reset. It is a platform restriction. See prior discussion confirming the behavior and two workarounds
Run this query to find all identities who own one or more sources: