Is it possible to revoke third-party account links in apex?

enter image description here

1 Answer 1


Yes , we can do it programaticlly , like :

// revoke the third party accont links

            Auth.AuthToken.revokeAccess(SsoProvider.id, Provider, userId, thirdPartyAccountLink.RemoteIdentifier);

We can query the third party account link using SOQL by - "ThirdPartyAccountLink" sObject

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .