? user() william
https://www.lianja.com/doc/index.php/USER()
? username() william
https://www.lianja.com/doc/index.php/USERNAME()
open database southwind ? username() ? userdatamask("customers","customerid")
https://www.lianja.com/doc/index.php/USERDATAMASK()
? userdomain() lianja.com
https://www.lianja.com/doc/index.php/USERDOMAIN()
? usertenancy() lianja.com
https://www.lianja.com/doc/index.php/USERTENANCY()
? useremail() myuser@lianja.com
https://www.lianja.com/doc/index.php/USEREMAIL()
? userfullname() William Colline
https://www.lianja.com/doc/index.php/USERFULLNAME()
? userroles() hr,sales
https://www.lianja.com/doc/index.php/USERROLES()
// 'Harry' has the 'salesuk' role ? userrowfilter("Harry","southwind","customers") // --> 'country = "UK"' // 'Sally' has 'salesusa' role ? userrowfilter("Sally","southwind","customers") // --> 'country = "USA"' // Logged in as 'Harry' open database southwind use customers ? userrowfilter() // --> 'country = "UK"' ? userrowfilter("Sally") // --> 'country = "USA"'
https://www.lianja.com/doc/index.php/USERROWFILTER()
open database southwind use customers alias cust in 3 // Display customerid data with 'partial' mask applied ? maskeddata(cust,"customerid","partial") ? maskeddata(3,"customerid","partial") // Display customerid data with current user's dynamic data mask applied ? maskeddata(cust,"customerid") ? maskeddata(3,"customerid")
https://www.lianja.com/doc/index.php/MASKEDDATA()
set LIANJA_LDAP=ON set LIANJA_LDAP=OFF
https://www.lianja.com/doc/index.php/LIANJA_LDAP
set LIANJA_LDAP_BASEDN=OU=AD LDS Users,O=Lianja,C=UK
https://www.lianja.com/doc/index.php/LIANJA_LDAP_BASEDN
set LIANJA_LDAP_SERVER=192.168.80.139:389
https://www.lianja.com/doc/index.php/LIANJA_LDAP_SERVER
? ldap_userroles("Mandy Monroe","192.168.80.139:389","OU=AD LDS Users,O=Lianja,C=UK")) HR,sales
https://www.lianja.com/doc/index.php/LDAP_USERROLES()
? ldap_login("Mandy Monroe","CcxkTpjFbfw2ulmv","192.168.80.139:389","OU=AD LDS Users,O=Lianja,C=UK")) HR,Sales,Readers,Users
https://www.lianja.com/doc/index.php/LDAP_LOGIN()
// Grant update privilege for columns lastname and firstname and insert for the table GRANT UPDATE (lastname, firstname) INSERT; ON customer; TO '[20,100]' // Grant all privileges to all users GRANT ALL ON test TO PUBLIC
https://www.lianja.com/doc/index.php/GRANT
// Revoke update privilege for columns lastname and firstname and insert on the table REVOKE UPDATE (lastname, firstname) INSERT; ON customer; FROM '[20,100]' // Grant all privileges to all users REVOKE ALL; ON test; FROM PUBLIC
https://www.lianja.com/doc/index.php/REVOKE
SELECT user_name FROM sysactiveusers
https://www.lianja.com/doc/index.php/SYSACTIVEUSERS
SELECT * FROM sysalerts WHERE user = user()
https://www.lianja.com/doc/index.php/SYSALERTS
SELECT * FROM sysusers WHERE user = user()
https://www.lianja.com/doc/index.php/SYSUSERS
if access() > 100 dialog box "Sorry, access denied." endif
https://www.lianja.com/doc/index.php/ACCESS()
use accounts @2,3 get name @3,3 get rates; when getgrnam() = "lianja" read
https://www.lianja.com/doc/index.php/GETGRNAM()
if getgid() > 100 and getgid() < 200 //... endif
https://www.lianja.com/doc/index.php/GETGID()
if getuid() > 100 and getuid() < 200 //... endif
https://www.lianja.com/doc/index.php/GETUID()
select * from system!sysperms
https://www.lianja.com/doc/index.php/SYSPERMS
select * from system!sysroles
https://www.lianja.com/doc/index.php/SYSROLES
select * from system!sysdatamasks
https://www.lianja.com/doc/index.php/SYSDATAMASKS
select * from system!sysrowfilters
https://www.lianja.com/doc/index.php/SYSROWFILTERS