Hi,
I've tried to reproduce this with a similar logic with no success. Can you provide which version and the identity stores (JPA, LDAP, File, etc) you are using ?