File Permissions

manageFilePermissions

This function allows you to create/modify the File Permissions Object.


getFilePermissions

This function prints the objects data given its File Permissions Object ID.


listFilePermissions

This function lists all File Permissions Objects.


deleteFilePermissions

This function allows you to delete the object given its File Permissions Object ID.


Parameter Dictionary

Account Filter Object

Parameter name Type Description Possible Values Example
_id String The Parameters Filter Object ID.   _id: 5b28f9f4d5ac5e5ed5049f82
regex String The regex for the File/Folder name you want the rule to apply to.   'regex: public_html'
Category String The category this File Permissions rule will be used for.
Homedir Data 1
Email Data 2
File System Data 3
category: 1
owner String Name of the owner you will like to assign.   owner: root
group String Name of the group you will like to assign.   group: nobody
recursive Boolean Boolean value to determine if the permissions rule will apply to all files/folders under the specified regex.   recursive: 1
dirs_permissions String The permissions value you will like to give to directories.   dirs_permissions: 0755
files_permissions String The permissions value you will like to give to files.   files_permissions: 0644