invalidateUserCache
On this page
This version of the documentation is archived and no longer supported. View the current documentation to learn how to upgrade your version of MongoDB server.
Definition
invalidateUserCache
Flushes user information from in-memory cache, including removal of each user's credentials and roles. This allows you to purge the cache at any given moment, regardless of the interval set in the
userCacheInvalidationIntervalSecs
parameter.
Syntax
The command has the following syntax:
db.runCommand( { invalidateUserCache: 1 } )
Required Access
You must have privileges that include the
invalidateUserCache
action on the cluster resource in order
to use this command.