PDA

View Full Version : User groups


gheidel
Sep 8th, 2004, 04:37 PM
Does Acegi support the concept of user groups? For example, a bank application that defined a user group called tellers. Permissions would be associated with the group and anyone belonging to the tellers group would have those permissions? How would this be implemented using Acegi?

Thanks.

Ben Alex
Sep 8th, 2004, 05:58 PM
Acegi Security only supports the notion of principals being assigned GrantedAuthority[]s.

Any administrative conveniences the aggregate GrantedAuthority[]s, such as groups, are an implementation responsibility. You'd be best off achieving this via an AuthenticationDao that understands your GROUPS table (assuming of course you're using DaoAuthenticationProvider like most people).

gheidel
Sep 10th, 2004, 09:26 AM
Thanks for the quick response.