GrantPermission

Metadata

  • Message Type: TransactionMessage
  • Message Number: 1155

Inherited fields

NameTypeSize (bytes)Description
MessageTypeInteger (unsigned)2The unique identifier of this message.
ClientIdInteger (unsigned)4The unique identifier of a session with the server, returned in a successful LoginReply message.
RequestIdInteger (unsigned)4Within each session each message must be uniquely identified by this field. It must be monotonically increasing for the duration of the session.

Fields

NameTypeSize (bytes)Description
EnterpriseForeign key to Enterprise8
FirmForeign key to Firm8
GroupForeign key to Group8
PermissionGroupForeign key to PermissionGroup8
UserForeign key to User8
TableOne of Table1
ActionOne of PermissionAction1
ScopeOne of PermissionScope1
InstanceForeign key to All8

Permissions


Grant Permission

{
	user: "test-user",
	table: Table.Account,
	action: PermissionAction.View,
	scope: PermissionScope.User,
	instance: 0,
}

Permission Checks

PermissionActionTableScopeIndex
AdministerAccountAll
AdministerPermissionFirm

Test file: GrantPermission