TMDM-8055 handle security for internal invocations