problem in accessing user name and role from REST SOE

Discussion created by pkhanal on Sep 7, 2010
Latest reply on Sep 13, 2010 by pkhanal
I enabled ArcGIS server security from the ArcGIS server manager. I can see the the services not being displayed for certain roles and displayed for certain roles as per the expectation when I browse the services logging as different users.

I tried to follow the steps described in
to get the user name and role of logged in user from the SOE. However, I get the user name and roles null despite the fact I am using services as a logged in user. Am I missing something?