I am using Windows Authentication on a Win2000 system and Active Directory. IIS grabs the user's NT login and passes it in to ASP.Net. Then my IsInRole() method can be used to check if the user is part of a windows role or is in an Active Directory group. On our corporate intranet we use the company Departments as groups in Active Directory and add users for that department into the group. This allows me to use IsInRole to check at a departmental level successfully. However, I am having a problem when the department name is 2 or more words such as
If User.IsInRole("Information Systems") Then .....
In this case, the IsInRole fails. How can I change my syntax on the method call to read all of the words in the role/group? Or doesn't that work with IsInRole?
Thanks