This function sets the OwnerID for a specific table when Advanced Security options like Users can see and edit their own data are in use.
Syntax
Security.setOwnerId(table, ownerid)
Arguments
table
the name of the table.
ownerid
the owner id.
Return value
No return value.
Example
This example shows how to output the current user data:
dynamic table = "posts";
dynamic ownerid = "1";
Security.setOwnerId(table, ownerid));
See also: