Force immediate role cache update

Which IIQ version are you inquiring about?

[8.4]

Share all details about your problem, including any error messages you may have received.

*[For tests, I upload a rule based role and an identity matching the rule criterias. Refreshing that specific identity should assign the role, which would mean the test has passed.
Problem: It takes IIQ a while (few minutes) to add the role to its cache. How long it takes seems to vary for reasons I don’t understand well (maybe chance, or number of roles in system etc.). With waiting, tests pass some time, but it is a lottery.

I would like to tell IIQ to load the role to its cache immediatly. I understand that the correlationModel holds the roles, so I tried the following immediatley after loading the role:

 CorrelationModel correlationModel = CorrelationModel.getCorrelationModel(context);
 correlationModel.getRole(context, loadedRole.getId());

This returns the role, so seems it loads it immediatly. However, if I refresh afterwards, still no assignment happens. I still have to wait a few minutes until the role gets assigned when refreshing.

Any ideas how I could achieve this?

]*

Hi @Philipp_Foerster,

have you tried to launch Full Text Index Refresh task?

“Full Text Index Refresh” takes even longer to finish, you cannot perform it for only one specific role.
Anyway, when I am not mistaken, it only updates the lucene index, which is optional (we have customers not using full text search). Thus AFAIK it has nothing to do with IIQs internal role cache.