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.
|