Given a unitary matrix $U$ and given a direct sum of Lie algebras all being subalgebras of the Lie algebra of skew-Hermitian operators, e.g. $\mathfrak{su}(n) \oplus \mathfrak{su}(n)$. How do can I check whether or not there exists $g$ in the Lie algebra s.t. $U = e^g$.
For a irreducible rep, their representation is given by the tensor product of reps of the constituents of the direct sum. But I am not interested in irreducible reps only, but rather in the (non-)existence of a rep that includes an arbitrary unitary matrix.