We have person accounts in our org. to whom we need to give access to our customer community at various stages of an opportunity.
Is there a way we can programmatically enable our person accounts as customer users using apex ?
We have Customer Community Login licenses available in our org.