We have a requirement wherein whenever user requests a role , a particular attribute should be set. And each time any user requests the same role , this value should increase by one.
Let us take this use case -- Suppose user test1 request access role "testRole", value of description attribute on his profile should be set to 100. Next time when another user test2 request the same access role , description should be set to 101 , similarly 102 for user test3 requesting the same role.
Can anyone help here ?
You could create an external DB table containing RoleName and Counter column and then rely on a PX Policy or custom code to update this external table.
You could write a blth or PX that would get role members at task runtime. You could either count them or loop all the members and get their description attribute.
But this will be difficult to manage if you start unassigning roles. An external table would indeed be your best bet.