net.corda.node.services.messaging / CURRENT_RPC_USER

CURRENT_RPC_USER

val CURRENT_RPC_USER: ThreadLocal<User>

This is available to RPC implementations to query the validated User that is calling it. Each user has a set of permissions theyre entitled to which can be used to control access.