i am using pim 2.1.1 and i have to start session recording right after when user logged into Access Agent..how can i do it using custom profiling ? please help

i am using IBM Security privileged identity manager and i want to start session recording of every activity right after when user logs onto access agent.please guide me how to do this using custom profiling ?