i have googled the heck out of this and i cannot find a solution. i would like to add users to a role manually using the administration tool or just manually doing this. i am a beginner with asp.net, how would i do this? i am using windows authentication
- duplicate stackoverflow.com/questions/922202/…Tomas Voracek– Tomas Voracek2011-08-19 19:21:29 +00:00Commented Aug 19, 2011 at 19:21
- please see image here, i have no users: imageshack.us/photo/my-images/20/77086680.png to choose fromAlex Gordon– Alex Gordon2011-08-19 19:23:19 +00:00Commented Aug 19, 2011 at 19:23
- @tomas do you have an answer pleaseAlex Gordon– Alex Gordon2011-08-19 20:12:37 +00:00Commented Aug 19, 2011 at 20:12
- do i need to use windows security group as role?Alex Gordon– Alex Gordon2011-08-19 20:16:49 +00:00Commented Aug 19, 2011 at 20:16
2 Answers
If you are using Visual Studio as and IDE. Click Project Tab and select ASP.NET Configuration. From there click Security to manage accounts and roles.
3 Comments
Using ASP.NET authentication
- open website administration tool .
- click on security. click manage users.
- click on edit role beside the username and you will see a list of available roles.

if you can't find any users then you have to choose create user first. if you can't find any roles then go back to security and click enable roles then create new role first and repeat the above steps after complition.
for windows authentication you can check for a certain user in code as follow
•Use the IPrincipal interface of the User object attached to the current HTTP request.
if(User.IsInRole(@"DomainName\Manager")) // Perform restricted operation else // Return unauthorized access error.
but any group managment mut be done using windows managment (users and groups) for more info. http://msdn.microsoft.com/en-us/library/ff647405.aspx