I have a post in the iFrame forum, but I think this might be related.
Right now, I have an application that uses an xref table with dnnUserID and a buildingID that I look up to see what the user has permission to. They could have access to 1 building or 50 - depending on what comes back from the query will determine what gets put into the list.
What I'd like to do is assign permission based on Roles in AD. Is there a way for me to access the Roles a user has if I have the AD Authentication all set up and working? IE, userA logs in and they are in AD Groups ITUsers, Building1Users, and Building3Users. I'd like to somehow create my list with Building1 and Building3 because I've somehow given the two AD groups access.
Even if it's just another xref table with ADGroupID and BuildingID instead of dnnUserID and BuildingID.
To make a short story long(sorry), I'm wondering if there is a way to access the RoleID's for a specific person logged in. I tried looking in the db tables, but I don't see any of the AD Groups in any of the tables. I've logged in several users and I know I have a bunch of Roles in the Role table that are not ones I created, but were brought in when the users logged in.
We're trying to use AD as the central point of security(and just about everything else) and finding a way to do this will solve multiple issues with going forward.