User name display

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Dave Barnes (davebarnes_at_sierrasystems.com)
Date: 03/01/04


Date: 1 Mar 2004 14:43:40 -0800

I've used the following CAML code combined from a number of sources
including Mike Walsh (www.collutions.com) to display the currently
logged on user on the Default.htm page. It works fine for site
administrators, but fails for all other authenticated users (set as
site "Contributors" role) and prompts for user name and password. Are
some additional privileges required to create a view of, or query the
UserInfo list? Has anyone else run into this or have any ideas?

Anonymous access is disabled for the site.

User:
<!--webbot bot="TestUser" PREVIEW="Test Username" startspan -->
<ows:XML>
   <SetList Scope="Request" Name="UserInfo"/>
   <View>
      <Query>
         <Where>
             <Eq>
                <FieldRef Name="ID"/>
                   <Value Type="Integer"><UserID/></Value>
             </Eq>
         </Where>
       </Query>
       <ViewFields>
          <FieldRef Name="Title"/>
       </ViewFields>
       <ViewBody>
          <Field Name="Title"/>
       </ViewBody>
    </View>
</ows:XML>
<!--webbot bot="TestUser" endspan i-checksum="33502" -->

Thanks for any help,
Dave



Relevant Pages

  • Re: Data Views in WSS 3.0
    ... "Mike Walsh" wrote: ... I did see the Site Aggregator in SPD 2k7's Web Part list also but it only ... Actually the info I am trying to display is in the same site collection just ...
    (microsoft.public.sharepoint.windowsservices)
  • RE: Windows Messenger 5.1 new sign-on problem
    ... Display name prompts. ... that it is related to having an incomplete profile on windows Live. ... The automatic signing-in process just keeps going without ever signing ...
    (microsoft.public.windowsxp.messenger)
  • Re: More fun with Google Groups
    ... Their latest wheeze is to display the contributors to a new ... thread, but not the messages, alongside the announcement "There are no ...
    (alt.usage.english)
  • Re: More fun with Google Groups
    ... Their latest wheeze is to display the contributors to a new ... thread, but not the messages, alongside the announcement "There ...
    (alt.usage.english)
  • Re: More fun with Google Groups
    ... Their latest wheeze is to display the contributors to a new ... thread, but not the messages, alongside the announcement "There are ...
    (alt.usage.english)