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
VornoVorno 

Apex class access privileges

Is there any way to enable an Apex class to have an access level higher than the user running the class?

I'm trying to implement a class/button for users to add themselves into specific Account Teams, since they will need access ad hoc, but obviously can't insert the relevant record (via Apex) into the AccountTeamMember table for the Account, as they don't currently have access!

Any help appreciated

Cheers,
Vaughan Crole
devNut!devNut!
You might want to check out the following sections in the apex developer guide:

- Using the with sharing or without sharing Keywords
- Exposing Data with WebService Methods
- executeanonymous()

http://www.salesforce.com/us/developer/docs/apexcode/index.htm


JAW99JAW99

Did you have any luck with this project? I'd like to allow users to add themselves to account teams as well.

Old thread, I know..