How to access currently logged user info

From: Babu Mannaravalappil (babuman_at_optonline.net)
Date: 09/18/03


Date: 18 Sep 2003 09:24:27 -0700


Hi,

My Windows application (C#) has a login screen and a user table to
handle user rights and accessibility. This is independant of the OS
level user security. At the time of launching the application, this
login authenticates the user and sets the access rights.

What is the best way to get to this user information (either as a
datarow from the users table or as a user class object) application
wide. I have custom user controls on windows forms that update
customer data. These custom user controls need to know who the
current user is.

So, in a .NET windows application how can I keep a custom user class
object or a datarow object globally visible for any module that
requires it?

Any help is highly appreciated.

Babu.



Relevant Pages

  • Re: Creating a Custom Users Group in Windows XP Professional
    ... In GPEDIT, you should be able to go to Computer Configuration, Windows Settings, Security Settings, Local Policies, User rights assignments and modify the Load and unload device driver setting to allow Power Users, or your custom group to this policy. ... The biggest issue with a custom group is ensuring that you give them access to everything they need access to. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Interactivity Logon not permitted
    ... Somehow you botched up the logon locally or deny logon locally user rights ... Management from your XP computer to view the security logs on the Windows ... > Renamed Administrator Account ...
    (microsoft.public.win2000.security)
  • Re: Group Policy in xp
    ... If the MUI articles here are not relevant, I'd check the User Rights ... Assignment parts of your policies and remove any 's that you see ... Windows Platform Support Team ... >>their systems this is working in windows 2000 clients but in windows xp ...
    (microsoft.public.win2000.group_policy)
  • Re: Networking issues - "Logon failure"
    ... I have run the Network Setup Wizard and I ... The problem is with user rights assignments on the desktop computer. ... The Guest account settings in Control Panel | User Accounts have ... If the desktop computer runs Windows XP Professional: ...
    (microsoft.public.windowsxp.network_web)
  • Re: Cannot open .doc files but can open .pdf files
    ... Internet Guest Account and a check mark for allow IIS to ... Windows authentication. ... >User rights: Administrator ... >Network password box: No ...
    (microsoft.public.inetserver.iis)