Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access currentUser credentials in Win Form App.
Message
From
29/08/2008 14:22:45
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
 
To
29/08/2008 10:11:47
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 3.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01343107
Message ID:
01343266
Views:
23
Hi Willy,

>Hi,
>
>I am exploring MM .Net (3.5) security infrastructure for Windows Applications.
>
>How can I access the userID for the current logged in user so I can apply my business rules?
>
>Thanks

You could access mmAppBase.UserMgr.UserPk or mmAppBase.UserMgr.UserID

There is also some good info for you to look at in the Dev Guide under "Application Security" the very last item labeled "Integrating with Windows Security" It isn't exactly what you are trying to do but it shows how to get a reference to a user object.

Take care
Tim
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform