I would like to know if the current user name exists in a particular collection. If so, this user is allowed to execute the command. Something like this (pseudo-code!):
'Perform task': command can-execute: user is ( .'Team'* >'Member' ) {
} => ...
Only a user
that is Member
of the Team
should be able to execute this command
. How to achieve this?