+ Start a Discussion
Saurabh Kulkarni 84Saurabh Kulkarni 84 

What happens when unlicensed user access a lightning component from installed package

I have question related to managed package development. I have a managed package which has a lightning component which can be added on opportunity record page. Now, this managed package is going to be a paid application on appexchange. The question is what if a customer has installed this app and has got 10 licences and then adds this component on opportunity record page. Will the users other than those 10 users see an error where the component is added saying you do not have license to see this? Or it will work for all? How does it work? 
AbhishekAbhishek (Salesforce Developers) 

May I suggest you please check with the below link from the stack exchange community exactly with a similar issue and a suggested workaround.


Hope this answers your question.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Saurabh Kulkarni 84Saurabh Kulkarni 84
Thanks, Abhishek for your quick response. 

I went through the link you shared and it looks like if my lightning component's controller is created with sharing then unlicensed user will not be seeing any records fetched from packaged custom object on the component. I hope that's correct. If yes, then I'm good. But will there be an error constantly being displayed by just having the component on the page to unlicensed user. Or there won't be any? Can you please help.