SugarCRM SupportDocumentationSugar DeveloperSugar Developer Guide 8.0ArchitectureLogic HooksApplication Hooksafter_load_user



The after_load_user hook executes after the current user is set for the current request. It handles actions that are dependent on the current user, such as setting ACLs or configuring user-dependent parameters.


function after_load_user($bean, $event, $arguments){}


Name Type Description
bean Object The bean object
event String The current event
arguments Array Additional information related to the event (typically empty)

Change Log

Version Note
6.6.0 Added after_load_user hook




    $hook_version = 1;
    $hook_array = Array();

    $hook_array['after_load_user'] = Array();
    $hook_array['after_load_user'][] = Array(
        //Processing index. For sorting the array.

        //Label. A string value to identify the hook.
        'after_load_user example',

        //tde PHP file where your class is located.

        //tde class the method is in.

        //tde method to call.




    if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');

    class application_hooks_class
        function after_load_user_method($bean, $event, $arguments)


Last modified: 2018-04-26 03:57:24