IsUserInRole() not working with IIS

But it works just fine without IIS.

With IIS, Remote User is bcnet\myuserid and isUserInRole() fails.

Without IIS, Remote User is myuserid and isUserInRole() succeeds

My environment requirements are that I am to use IIS.

Any suggestion?