This is only updating what is given in the 'targetResources'. However the problem is, it is calculating all the other attributes of other assigned roles which are not relevant to the current operation. And it impacts the performance a lot.
To be more clear, if a user is assigned with role1, role2, role3 and when I am assigning role4, it is only reprovisioning the resource mentioned in role4. But it recalculates all the attributes which are part of role1, role2, role3 even though they are not updated finally.
I haven't seen any attributes in the 'com.waveset.provision.ProvisioningOptions' class to restrict the other roles' attributes refresh.
Please suggest if we have any ways to restrict the other roles being refreshed. Thanks in advance!