Waiting for engine...
Skip to main content

Folder permission management

Data Structure

FTHPermissionListItemData

note

In the definition of the object/structure FTHPermissionListItemData is that one call permission can be set either for userID or for usergroupID, but not for both.

FTHPermissionListItemData  
Holds the data on a single item in permission list
Data TypeField NameDescription
intFolderPermissionIDID of a folder permission item
intFolderIDID of a folder for which permission is retrieved
intPermissionPermission value Permission enum:
None = 0×00, //0
Show = 0×01, //1
Read = 0×02, //2
Create = 0×04, //4
Download = 0×08, //8
Distribute = 0×010, //16
Manage = 0×020, //32
Modify = 0×040, //64
Delete = 0×080, //128
FullControl = Read , Create , Download , Distribute , Manage , Modify , Delete
intUserIDID of a user whose permission is retrieved, equals to (-1) if permission is set for a group
intUserGroupIDID of a group whose permission is retrieved, equals to (-1) if permission is set for a user

Methods

GetFolderPermissionList

Retrieves a list of permissions for a MFT FS folder

FTHPermissionListItemData []  
GetFolderPermissionList (Guid sessionID, int folderID)
Parameter NameDescription
sessionIDUser session returned by one of the Open functions
folderIDID of the folder for which the permission is retrieved

SetFolderPermissionList

Set permission list for a MFT FS folder

void  
SetFolderPermissionList(Guid sessionID, int folderID, FTHPermissionListItemData[] newPermissionList)
Parameter NameDescription
SessionIDUser session returned by one of the Open functions
FolderIDID of the folder for which the permission is set
newPermissionListList of permissions items, refer to specification of data structure FTHPermissionListItemData
On this Page