When you’re debugging security related things, sometimes you need to take a look at the thread identities user token.
When you’re inside of Visual Studio 2010 – in the watch windows you enter ‘$user’ and you’ll get the same as when in windbg with !token –n
![SNAGHTML6a3d635[6] SNAGHTML6a3d635[6]](http://gwb.blob.core.windows.net/cicorias/Windows-Live-Writer/a572807ec351_FBF6/SNAGHTML6a3d6356_thumb.png)