list-permissions
Lists the permissions that can be granted on a share, with the rights each of them gives.
Syntax:
shell
sfiler [options] list-permissions [command options]| Command options | Required/Optional | Description |
|---|---|---|
| -n | Optional | Lists only the permission with this exact name. The name is not case-sensitive. Cannot be used with -f. |
| -f | Optional | Lists 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. |
| -up | Optional | true or false: lists only the permissions that grant (true) or do not grant (false) the right to upload. |
| -dn | Optional | true or false: lists only the permissions that grant (true) or do not grant (false) the right to download. |
| -d | Optional | true or false: lists only the permissions that grant (true) or do not grant (false) the right to delete. |
| -ls | Optional | true or false: lists only the permissions that grant (true) or do not grant (false) the right to list. |
| -rn | Optional | true or false: lists only the permissions that grant (true) or do not grant (false) the right to rename. |
| -mf | Optional | true or false: lists only the permissions that grant (true) or do not grant (false) the right to manage folders. |
| -dof | Optional | true 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).
Example:
shell
./sfiler.sh -l "my-user" -p "my-password" -s https://www.example.com/sfiler/server/ list-permissions -dn trueshell
sfiler.exe -l "my-user" -p "my-password" -s https://www.example.com/sfiler/server/ list-permissions -dn true