Home
Main Introduction Features Constants Statements Database Objects Parser Serial-Communication Samples Misc
Objects>Domain Object
Caravan Business Server>Help>Objects>Domain Object
Syntax <CARAVAN>
Domain admin
"This page can accessed by domain admin users only"
</CARAVAN>

<CARAVAN>
Domain admin|system
"This page can be accessed by admin and system users only"
</CARAVAN>
Text By specifying domain admin, only users belonging to the admin domain will be able to access this page.
In the above example by specifying domain admin|system, only users belonging to admin and system domain will be able to access this page.

When the above code is run, if you belong to the Admin domain, you will be logged in automatically. If you do not belong to this domain, the messages is displayed to you and you are redirected to the login page.

Note : Refer to Creating New Users for details on how to create new users.

Except uid and total properties, the rest of the user object properties are only available when you are logged in as admin or the user object is for the logged in user.
Back