User Object

Microsoft Office InfoPath

User Object

Provides methods that can be used to return information about the current user.

Remarks

Note  This object model member is not supported when the Disable Service Pack features option on the Advanced tab of the Options dialog box in InfoPath is selected or when Microsoft Office 2003 Service Pack 1 or later is not installed. Any form that implements this object model member in its code will generate an error message if it is opened in InfoPath when service pack features are disabled or unavailable.

Using the User object

Use the User property of the Application object to return a User object.

The User object contains the following methods:

Method Description
IsCurrentUser Returns True if the current user matches the specified user name.
IsUserMemberOf Returns True if current user is a member of the specified group.