UserID Element (View)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Child Elements
Parent Elements

Contains the unique ID number of the currently authenticated user of a site, as defined in the UserInfo table of the content database.

  AllowAnonymous = "TRUE | FALSE">




Optional Boolean. TRUE to allow anonymous requests without displaying a dialog box to ask for the user's password.

Minimum: 0

Maximum: Unbounded

The UserID element can be used to compare the value of a field to the current user ID. If the request is anonymous, this element, by default, causes the server to force authentication, which means it must display a dialog box in the browser that asks for a password or else it must initiate Windows NT challenge/response (NTLM). If a user has accounts on multiple subsites or Web applications, the user ID may be different in each case.