GrantPermission
- Message Type: TransactionMessage
- Message Number: 1155
Inherited fields
| Name | Type | Size (bytes) | Description |
|---|
| MessageType | Integer (unsigned) | 2 | The unique identifier of this message.
|
| ClientId | Integer (unsigned) | 4 | The unique identifier of a session with the server, returned in a successful LoginReply message.
|
| RequestId | Integer (unsigned) | 4 | Within each session each message must be uniquely identified by this field. It must be monotonically increasing for the duration of the session.
|
Fields
Permissions
Grant Permission
{
user: "test-user",
table: Table.Account,
action: PermissionAction.View,
scope: PermissionScope.User,
instance: 0,
}
Permission Checks
| PermissionAction | Table | Scope | Index |
|---|
| Administer | Account | All | |
| Administer | Permission | Firm | |
Test file: GrantPermission