I am working on a lightning component which would allow the admin to select what type of community: Authenticated or Public. After selecting the community type, I need to show the relevant communities in the view.

I checked the Network object to see if there's field which I could use to decide a particular community is public or not but I don't find any such field to do so.

Is there's a way to get all the public and authenticated communities in Apex?

1 Answer 1


You can utilize the Connect API Community methods to get a listing of communities and details around them, There isn't a straight Public/Authenticated status to check. But this will get you the listing of all communities you have access to

You must log in to answer this question.

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