Hide a Child Folder using the API

By utilizing the folder logic within Roles, you can control the folders that users have access to.


In this example we will be hiding the folder named 'Child Folder'.


The following is a breakdown of each line:

  • Line 1 - Get the Role 
  • Line 2 - Activate the Role
  • Line 3 - Set the 'Include All Folders' flag to true
  • Line 4 - Create a new Folder Access entry
  • Line 5 - Set the name to the path name of the folder you wish to hide


'Child Folder' no longer appears inside 'Parent Folder'

Note: Setting 'Include All Folders' to false will have a reverse effect and cause only the specified folder to display. The permissions of parent folders will be inherited by all child folders.

Hidden Article Information

Article Author
created 2016-01-26 17:27:00 UTC
updated 2017-06-19 20:35:58 UTC

no labels yet!
Have more questions? Submit a request