User Changed

This Callback hook is triggered when the user has changed.

Request Body:

{
    command: 'registerCallback',
    version: 1.0,
    method: 'POST',
    data:   
[
            {
                callbackCommand : 'Environment',
                hookName: 'userChanged'
            }
           ]
}

Response Body:

{
    command: 'registerCallback',
    version: 1.0,
    method: 'POST',
    responseType: 'registered',
    Hooks:
            [
{
                callbackCommand : 'Environment',
                hookName: 'userChanged',
                status: 200,
                message: 'Event registered successfully',
                error: null
                
            }
]

Triggered Callback Response Body:

{
    command: 'registerCallback',
    version: 1.0,
    method: 'POST',
    responseType: 'triggered',
    callbackCommand: 'Environment',
    hookName: 'userChanged',
    data: 
  {
            oldUser : '[email protected]',
            newUser: '[email protected]',
            oldPrivilege : 'admin',
            newPrivilege : 'manager',
            timeStamp : '2021-May-17-1400'
             }
}

Did this page help you?