Is it possible to revoke third-party account links in apex?
1 Answer
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