Capture Current Logged on User without Impersonate


Badge +4

Hi,

 

I am developing a custom coded solution for K2 using SmartObjects and SmartForms.

 

This is developed using C#.NET 4 to build the SmartObjects.

 

My question is:

How do I get the current logged on windows user so that we can validate their access level to the workspace and provide appropriate access.

I have tried using the System.Security.Principal dll Windows.Identity.GetCurrent.

 

This works when debugging in development but when deployed the Impersonate settings override it.

 

Can anyone advise me on how to reconfigure the ServiceObject or do I need to code it differently?

 

Thanks,

Sam


0 replies

Be the first to reply!

Reply