Hi @tplcoder
not sure about temporalite, I think is should work in the same way, I will try to figure it out.
checkout this post: Authorization, Untrusted workflow creation and namespace authentication - #8 by SergeyBykov, I think this is similar to what you want to do.