reset access cache when user identity is set

fixes #2632