Unable to remove all accounts from a source

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.

Thanks

RK

Hey @rk_cyd ,

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:


_exists_:owns.sources

thanks

Hi @rk_cyd ,

You have to remove the source owner’s account from the source.

Go to accounts and remove the source owner account from the accounts.

You can do the Reset Accounts easily in Vs code ISC extention.

Thank you. This trick worked.

I executed the API call /sources/:id/remove-accounts. The error message showed a bunch of IDs. I took each of these IDs and searched for the identities. For each identity, I removed the account from the source I wanted to reset. That did the trick.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.