You need to sign in to do that
Don't have an account?

Error "You do not have access to the Apex class named: OutboundInterfaceRunRestService"
Hi, I'm trying to make a REST API call at:
https://....salesforce.com/services/apexrest/...
but I'm getting this error:
{'message': 'You do not have access to the Apex class named: OutboundInterfaceRunRestService', 'errorCode': 'FORBIDDEN'}
It works if I use an admin user, but not with another user. What permissions should I give this user?
https://....salesforce.com/services/apexrest/...
but I'm getting this error:
{'message': 'You do not have access to the Apex class named: OutboundInterfaceRunRestService', 'errorCode': 'FORBIDDEN'}
It works if I use an admin user, but not with another user. What permissions should I give this user?
You can specify which users can execute methods in a particular top-level class based on their user profile or permission sets. You can only set security on Apex classes, not on triggers.
To set Apex class security from the class list page:
- From Setup, enter Apex Classes in the Quick Find box, then select Apex Classes.
- Next to the name of the class that you want to restrict, click Security.
- Select the profiles that you want to enable from the Available Profiles list and click Add, or select the profiles that you want to disable from the Enabled Profiles list and click Remove.
- Click Save.
To set Apex class security from the class detail page:- From Setup, enter Apex Classes in the Quick Find box, then select Apex Classes.
- Click the name of the class that you want to restrict.
- Click Security.
- Select the profiles that you want to enable from the Available Profiles list and click Add, or select the profiles that you want to disable from the Enabled Profiles list and click Remove.
- Click Save.
To set Apex class security from a permission set:- From Setup, enter Permission Sets in the Quick Find box, then select Permission Sets.
- Select a permission set.
- Click Apex Class Access.
- Click Edit.
- Select the Apex classes that you want to enable from the Available Apex Classes list and click Add, or select the Apex classes that you want to disable from the Enabled Apex Classes list and click Remove.
- Click Save.
To set Apex class security from a profile:All Answers
You can specify which users can execute methods in a particular top-level class based on their user profile or permission sets. You can only set security on Apex classes, not on triggers.
To set Apex class security from the class list page:
- From Setup, enter Apex Classes in the Quick Find box, then select Apex Classes.
- Next to the name of the class that you want to restrict, click Security.
- Select the profiles that you want to enable from the Available Profiles list and click Add, or select the profiles that you want to disable from the Enabled Profiles list and click Remove.
- Click Save.
To set Apex class security from the class detail page:- From Setup, enter Apex Classes in the Quick Find box, then select Apex Classes.
- Click the name of the class that you want to restrict.
- Click Security.
- Select the profiles that you want to enable from the Available Profiles list and click Add, or select the profiles that you want to disable from the Enabled Profiles list and click Remove.
- Click Save.
To set Apex class security from a permission set:- From Setup, enter Permission Sets in the Quick Find box, then select Permission Sets.
- Select a permission set.
- Click Apex Class Access.
- Click Edit.
- Select the Apex classes that you want to enable from the Available Apex Classes list and click Add, or select the Apex classes that you want to disable from the Enabled Apex Classes list and click Remove.
- Click Save.
To set Apex class security from a profile:Excuse me, could you kindly assist me in how to access @AuraEnabled decorated methods without user login?