Is there any way to manipulate folder permissions from apex code.Let’s say some folders are not visible to some user or group but based on some other conditional changes now they need access to those folders so, how can we automate it from apex code instead of system admin manual intervention.


I think using the access type field in Folder object we can implement the same.

  • 2
    You can change the accessType to either hidden, public or shared. But I dont think you can add the public group/ role that the folder should be shared to.. The API doesn’t allow you to view, insert, or update which group or Role the Folder is shared with. salesforce.com/us/developer/docs/api/Content/… – Sam Jul 24 '13 at 7:13
  • @theGreatDanton that seems to be an answer in it's own right - you should post it as one. – ca_peterson Jun 20 '14 at 5:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.