Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Security API > Methods

Security API: getOwnerId

Scroll Prev Next More

 

This function gets the OwnerID for a specific table when Advanced Security options like Users can see and edit their own data are in use.

Syntax

Security.getOwnerId(table)

Arguments

table

the name of the table.

Return value

Returns the OwnerID for the specified table.

Example

This example shows how to output the current user data:

 

dynamic table = "table1";
MVCFunctions.print_r(Security.getOwnerId(table));

Sample output

1

See also:

Security API: setOwnerId()

Advanced security settings

About Security API