corda / net.corda.node.services.messaging / CURRENT_RPC_USER

CURRENT_RPC_USER

@JvmField 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 they're entitled to which can be used to control access.