Avatar of SWRO
 asked on

How to filter web.config for certain users


How does one filter certain Domain users via the web.config file?

For example, let's say you have 2 domains. Domain1 and Domain2. Furthermore, UserID's are prefixed with a certain character that allows you to identify who they are. Say, ABC.  I do not have direct access to AD, so there's no chance of me just shoving them into an AD Group. I have to look at them as individual users.

Given that, I want to say GRANT everyone in Domains 1 & 2 whose UserID starts with ABC.
<allow users="Domain1\ABC*, Domain2\ABC* " />
<deny users="*">

However, VS.NET barks at me when I try this and gives me the following error...
"Authorization rule names cannot contain the '*' character."

I know that I've seen people do this before, but I am at a loss to find an example.
.NET Programming

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Yeah, I think you're right.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck