function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sree SalesforceSree Salesforce 

If we are writing Global class how we can secure to external user?

Rajesh PotnuruRajesh Potnuru
Stop spamming with your interview questions
Ankit AroraAnkit Arora
Not exactly sure with your question, but if it is you don't want to expose the code to external user then you can put the global components in managed package.
There two things to study:

1) Access modifiers
2) Access to apex class from profile level.

This may help you in understanding the security. If this question is not an interview question then you already understood the answer by above 2 points mentioned.