How to launch a template when the user appear in PersonInOrg ?

Hello,

I would like to assign an attribute to a user when the user receive a business role (defined by a dynamic role) and I don't know how to allow the corresponding template to be automatically executed.

In other words, how could I launch a template for a user when the user appear in the PersonInOrg table ?

Many thanks for your help.

Michel