Is username returning a local machine administrator rather than domain
administrator? Since you didn't specify that username is
myDomain\Administrator, it isn't clear. If the user is a domain
administrator, it should work just like you have it.
Dale Preston
MCAD, MCSE, MCDBA
"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:B2**********************************@microsof t.com...
Hello,
username=user.identity.name
trueFalse=User.IsInRole("myDomain\Administrators") ?
First line return user name as administrator but second line returns
false? What might be the reason? Or how does isInRole work? Thanks,
Jim.