troubleshooting Question

How to filter web.config for certain users

Avatar of SWRO
SWRO asked on
.NET Programming
2 Comments1 Solution912 ViewsLast Modified:
Hello,

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.
ASKER CERTIFIED SOLUTION
YZlat

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros