开发者

Spring Security: Find Groups A User Belongs To?

开发者 https://www.devze.com 2023-02-13 23:07 出处:网络
How do I f开发者_运维百科ind groups a user belongs to? I can use GroupManager.findAllGroups() then loop the group with GroupManager.findUsersInGroup(java.lang.String groupName). However, this is expen

How do I f开发者_运维百科ind groups a user belongs to? I can use GroupManager.findAllGroups() then loop the group with GroupManager.findUsersInGroup(java.lang.String groupName). However, this is expensive. Do we have any straight forward method?

Thanks.


After some research, there is no existing Spring Security API to do it, you may need to write the SQL yourself based on your database schema.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号