Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Grails アプリにすべてのユーザーのリストがあり、このリストでユーザーの役割を確認したいと考えています。どうすればこれを入手できますか? 私のアプリは Spring Security プラグインを使用しています。
前もって感謝します
デフォルト ドメインの User と Role を使用している場合は、たとえばUserRole.list().
UserRole.list()
ただし、ユーザーのドメインが User と呼ばれず、同じことが役割にも当てはまる場合、ドメインクラスの名前は異なる場合があります。