+ Start a Discussion
SewaltherSewalther 

@RestResource Apex Class access issue

I have created a @RestResource, but the developer I am working with who is making the GET call from an external system is having an issue accessing. What am I missing? Thank you in advance for any help. 

[    
    {        
"errorCode": "FORBIDDEN",        
"message": "You do not have access to the Apex class named:
BlueCloudGetOptyDetail"    
     }
]
Best Answer chosen by Sewalther
Pramod Nishane 17Pramod Nishane 17
Hi HoustonAdmin,

As you making GET request so you must used some user credentials for getting access token.
So check for that user's profile - having access for apex class 'BlueCloudGetOptyDetail' or not?

If not please give access for required classes by navigating - consider profile Name as 'Integration User Profile'.
Go to profile 'Integration User Profile' ->.
User-added image

Let me know in case of any concerns.

Please mark this answer as the solution/ best answer if it solves your purpose so that it can help other community members.

Thanks,
Pramod Nishane
Salesforce Consultant
Varasi LLC
www.varasi.com
 

All Answers

Raj VRaj V
Can you share the code? 


Please check if you have any namespaces .. If you have it then change it namespace__BlueCloudGetOptyDetail
Pramod Nishane 17Pramod Nishane 17
Hi HoustonAdmin,

As you making GET request so you must used some user credentials for getting access token.
So check for that user's profile - having access for apex class 'BlueCloudGetOptyDetail' or not?

If not please give access for required classes by navigating - consider profile Name as 'Integration User Profile'.
Go to profile 'Integration User Profile' ->.
User-added image

Let me know in case of any concerns.

Please mark this answer as the solution/ best answer if it solves your purpose so that it can help other community members.

Thanks,
Pramod Nishane
Salesforce Consultant
Varasi LLC
www.varasi.com
 
This was selected as the best answer
SewaltherSewalther
Thank you! That worked.