grant
Syntax and description
The grant command sets what permissions a principal (user or role) has for a specific container. The server must be stopped before this command is executed.
mobiletogetherserver grant [options] Principal Path Container Workflow Security |
•All five arguments are mandatory.
•Principal specifies the user or role for which permissions are being assigned. The principal must already be defined on the server.
•Path specifies the path to the container for which permissions are being assigned. The path to the container must be an absolute path starting at the directory root.
•Container specifies the container's permission level (read-write | read | inherit | none).
•Workflow specifies the workflow's permission level (read-write-use | read-use | inherit | none).
•Security specifies the level of access the principal has to the container's security settings (read-write | read | inherit | none).
Note: | For a description of the values of permissions, see Workflows | Permissions. |
MobileTogetherServer on Windows mobiletogetherserver on Windows and Unix (Linux, Mac)
* Note that lowercase (mobiletogetherserver) works on all platforms (Windows, Linux, and Mac), while upper-lower (MobileTogetherServer) works only on Windows and Mac. * Use forward slashes on Linux and Mac, backslashes on Windows.
|
On Windows systems: When spaces or special characters occur in strings (for example in file or folder names, or company, person or product names), use quotes: for example, "My File". Note, however, that a backslash followed by a double-quotation mark (for example, "C:\My directory\") might not be read correctly. This is because the backslash character is also used to indicate the start of an escape sequence, and the escape sequence \" stands for the double-quotation mark character. If you want to escape this sequence of characters, use a preceding backslash, like this: \\". To summarize: If you need to write a file path that contains spaces or an end backslash, write it like this: "C:\My Directory\\".
|
Example
Examples of the grant command:
mobiletogetherserver grant tech-01 /public/contact read-write read-write-use read-write
mobiletogetherserver grant tech-02 /public/contact inherit inherit inherit
mobiletogetherserver grant tech-03 /public/contact read read-use none
Options
Use the --h, --help option to display information about the command.