User name display
From: Dave Barnes (davebarnes_at_sierrasystems.com)
Date: 03/01/04
- Next message: Shafia: "Contact View Control"
- Previous message: Mike Walsh [MVP]: "Re: Workflow in SPTS"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Shafia: "Contact View Control"
- Previous message: Mike Walsh [MVP]: "Re: Workflow in SPTS"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|