New in version 3.6.
killAllSessionsByPatterncommand kills all sessions that match any of the specified patterns.
The command has the following syntax:
The command takes an array of documents that specify the patterns to match:
||Specify the UUID portion of the session id to kill.|
||Specifies the hash of the owner of the sessions to kill.|
||Specifies the owners of the sessions to kill. Requires additional privileges. See Access Control.|
||Specifies the roles assigned to the owners of the sessions to kill. Requires additional privileges. See Access Control.|
Specify an empty array to kill all sessions.
For patterns that include
roles, you must also have privileges that grant
impersonate action on the cluster resource.
Users can kill their own sessions even without
killAnySession privilege action.