Role based policy is not working

Hello Team,

We want to setup keycloak with azure AD and give access to azure AD users of certain azure group only.

We are able to authenticate the azure Ad users through keycloak.
For authorization, We added a mapper Claim to role and also added role based policy as descibed in below keycloak documentation

But the users not belonging to that group are still authroised to view the application.

Please help us to resolve the issue.