Craig Shearer
Craig Shearer

Reputation: 14521

In WCF how do I access the user the service is running as?

I have a WCF service hosted in IIS and want to gain access to the user the service runs as - not the caller. Is this possible?

I know about the aspNetCompatibilityEnabled, but that gives me the user calling the service, not the user the service is running under.

Upvotes: 0

Views: 54

Answers (1)

How about System.Environment.UserName?

Upvotes: 1

Related Questions