laureysruben laureysruben - 4 months ago 28 Question

mvc windows authentication allow all users from domain

I have an mvc intranet application using windows authentication. It currently has one controller with three actions.

The first action (index) should be available to everyone, this is no problem. The second and the third actions should only be available to users in a specific DOMAIN. However the

tag only gives me 2 options: Roles or Users. I tried using Users and setting it to 'DOMAIN*' and 'DOMAIN\?' but that doesn't work.

I've been searching all over the internet but can not seem to find any way of accomplishing what I want. I hope someone here can help me out!



Use DOMAIN\Domain Users as the role name. Its a built-in group that contains, you guessed it, all users in the domain.