MongoDB.local SF, Jan 15: See the speaker lineup & ship your AI vision faster. Use WEB50 to save 50%
Find out more >
Docs Menu
Docs Home
/ /
Role Management Commands

invalidateUserCache

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.

invalidateUserCache has the following syntax:

db.runCommand( { invalidateUserCache: 1 } )

You must have privileges that include the invalidateUserCache action on the cluster resource in order to use this command.

Back

grantRolesToRole

On this page