Reputation: 71
I want all the users from same domain name: XYZ to access my application below is my code.
<system.web>
<compilation debug="true" targetFramework="4.0" />
<authentication mode="Windows" />
<authorization>
<allow users="XYZ\HOW TO GRANT ACCESS TO ALL THE USERS HERE?" />
<deny users="*" />
</authorization>
<identity impersonate="true" />
</system.web>
Upvotes: 1
Views: 636
Reputation: 71
Try this one and also disable Anonymous Authentication and only enable Integrated Windows Auth.
`<authentication mode="Windows" />
<authorization>
<allow roles="XYZ\Domain Users" />
<deny users="*" />
</authorization>`
Upvotes: 1
Reputation: 8151
You can use the Domain Users
<authorization>
<allow roles="XYZ\Domain Users"/>
</authorization>
Upvotes: 2