I'm trying to get the community site url, using the ConnectApi in a lightning component, with a SystemAdmin it works fine, but not with any other profile.
Here is my code
final Network myNetwork = [SELECT Id FROM Network WHERE Name ='NET NAME']; final ConnectApi.Community myCommunity = ConnectApi.Communities.getCommunity(myNetwork.Id);
The other profile has access to:
- Apex REST Services
- API Enabled
Do I need to add another permission?ßß