I want to be able to write to a csv file and notify managers based on a birhtright role or a business role assignment to the identity and each time the role changes, i have to change it also on the csv file what is the best practice to do this?
If the identity gets assigned a birthright role right away i need to write down on a csv file with the following headers : Column Identity and Column Role and fill them with the identity and the role that it got assigned. The csv file would be sent through a run rule task that is going to be scheduled once a day
Thank you for your answer. I understand what you mean however suppose we have done that. For the first assignment of a birthright role,we are gonna mark on the csv that the identity got the role but how do we detect that the identity has lost the role at one point (like in the case of deletion) ? Because i also need to mark on the csv that the role has been deleted from the identity and as far as i know there are no snapshots for roles..
In this scneario, it will be better to create an attribute for your birthright role assignment. Create a lifecycle event of type Attribute Change and trigger a workflow whenever this change happens and write your logic in the workflow step based on the requirement.
We could have done that but sadly we don’t have a specific attribute .. We only have these bundles without a specific attribute for the business roles they are assigned manually