Skip to content

list-permissions ​

Available in4.21.0 +

Lists the permissions that can be granted on a share, with the rights each of them gives.

Syntax:

shell
sfiler-admin [options] list-permissions [command options]
Command optionsRequired/OptionalDescription
-nOptionalLists only the permission with this exact name. The name is not case-sensitive. Cannot be used with -f.
-fOptionalLists only the permissions whose name contains this value, or matches it when it contains *, which stands for any text. The value is not case-sensitive. Cannot be used with -n.
-upOptionaltrue or false: lists only the permissions that grant (true) or do not grant (false) the right to upload.
-dnOptionaltrue or false: lists only the permissions that grant (true) or do not grant (false) the right to download.
-dOptionaltrue or false: lists only the permissions that grant (true) or do not grant (false) the right to delete.
-lsOptionaltrue or false: lists only the permissions that grant (true) or do not grant (false) the right to list.
-rnOptionaltrue or false: lists only the permissions that grant (true) or do not grant (false) the right to rename.
-mfOptionaltrue or false: lists only the permissions that grant (true) or do not grant (false) the right to manage folders.
-dofOptionaltrue or false: lists only the permissions that grant (true) or do not grant (false) the right to delete own files.

Without options, the command lists all the permissions. It displays the following columns: ID, Name, Description, and one column per right (Upload, Download, Delete, List, Rename, Manage Folders, Delete Own Files).

The name displayed in the Name column is the value expected by the -pm option of add-direct-access-token and modify-direct-access-token.

Example:

shell
sfiler-admin.sh -l my-admin -p 012345 -s https://www.example.com/sfiler/server/ list-permissions -dn true
shell
sfiler-admin.exe -l my-admin -p 012345 -s https://www.example.com/sfiler/server/ list-permissions -dn true