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>
You can use the Domain Users
<authorization>
<allow roles="XYZ\Domain Users"/>
</authorization>
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>`
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.