Authorization : User to Tenant permission checks for camunda-bpm-spring-boot-starter-rest


I am looking for a way we can enable the user-tenant authorizations for the APIs. I enable the authorization at the process engine configuration, but that did not really validate the user to tenant permissions on the resources being accessed. I have a custom spring security filter been used to authenticate based on a token. We can retrieve the userId from the token. Not quite sure how I can inject the userId to Camunda authorizations so that we can apply the authorizations.