A simple graph \(G\) is called \(k\)-role colorable if there exists a surjective mapping from the vertices of \(G\) to the set \(\{1,2, \ldots, k\}\), where each number represents a “color,” such that any two vertices assigned the same color have exactly the same set of colors among their neighbors. The decision problem of whether such a role coloring exists (for a fixed integer \(k\)) is known as the \(k\)-role coloring problem, and is NP-complete for every fixed \(k \ge 2\). In bipartite graphs, it remains NP-complete for every fixed \(k \geq 3\). This is also true after fixing the role graph (formed by the colors), in particular if the role graph is a \(P_3\). In this paper, we characterize cactus graphs admitting a \(P_3\)-role coloring and provide a linear-time algorithm to compute such a coloring based on this characterization. We also characterize for other classes of bipartite graphs (e.g., subdivided graphs or chordal bipartite graphs) those graphs that admit a \(P_3\)-role coloring.