We are using OKTA authentication for the sitecore client facing website and there are few attributes defined on users profile in OKTA portal and we are building Virtual users and adding those Attributes to the created users and assigning roles to them accordingly.
Example we have a role created in Sitecore as extranet\Admin, we have an Attribute named 'IsAdmin' for the user in OKTA Portal, so checking this flag we enable the extranet\Admin role to the virtual user we create.
In the Personalization rule - We are checking if the current user is part of that role using the below predefined rule "Where the current user is a member of specific (in this occasion extranet/admin) role and personalizing based on this. This doesn't seem to work but we can see all the properties getting assigned properly to the context user and this is happening in Sitecore 9.3 website but the same was working in our Sitecore 8.2 website. We have done an upgrade from 8.2 to 9.3.
We are not seeing any errors in the log, are there any issues with the predefined personalization rules of Sitecore under Security bracket which deals with current user context anyone aware of? Any suggestions/thoughts would be helpful.