I would like to check if a user on an ASP.net web form is in a particular group.

I have Forms authentication turned on and need to check programitacilly if a user is in a group or not to allow access to various fnctions.

There is a User.IsInRole function but I always get false for just the Group Name or Domain/Group Name.

Is a Role different to a Group?

Any samples around like this?

Also, is there a way to identify all the groups in a domain via WMI or something?

Thank you

David