The API provides access to table permissions. The following code shows how to use the API service to read and update table permissions using the ITablePermission interface:

define variable tablePerm as ITablePermission no-undo.

table = service:GetTablePermission("Customer").
/* Set properties */
. . .
service:UpdateTablePermission(tablePerm).

It is also possible to retrieve a collection of tables in the database from the service and then update the Can* properties and multi-tenant related properties in the instances on the ITablePermissionSet collection before passing the collection to the service to commit all changes in a single transaction.

For more information on the: