How about this sort of thing:

 

UserProfileManager upm=new UserProfileManager(ServerContext.Current);

UserProfile user=upm.GetUserProfile(User.Identity.Name);

 

YourMethod(User["ClientID"]);

...

 

You probably need to run the code with elevated privileges cause average
joe won't have permission.

 

 

 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Dominik Aniszewski
Sent: Friday, 15 February 2008 3:50 PM
To: listserver@ozMOSS.com
Subject: [SPAM] - RE: [OzMOSS] RE: Adding user properties - Found
word(s) list error remove list in the Text body

 

Yep will be different for each user which is were my difficulty comes
from. 

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ishai Sagi
Sent: Friday, 15 February 2008 2:29 PM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] RE: Adding user properties

Is the clientID different for each user? Then that is not the way to do
audiences. Audiences are there to create virtual groups of users based
on an attribute. Then, when you edit a web part you can specify which
audiences should see it. In SharePoint lists you can add an audience
field so that each list item can be targeting an audience.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Anthony Hughes
Sent: Friday, 15 February 2008 2:34 PM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] RE: Adding user properties

 

had a look at audiences but could not find anyway to actually have it
use the ClientID parameter and use this to display only the data
pertaining to this customerID.

 

 

 

 

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ishai Sagi
Sent: Friday, 15 February 2008 1:37 PM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] RE: Adding user properties

That is done using audiences (which is not security - just a view
filter, people will still be able to see the information if they know
what they are doing). Research audiences in MOSS.

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Anthony Hughes
Sent: Friday, 15 February 2008 1:45 PM
To: listserver@ozMOSS.com
Subject: RE: [OzMOSS] RE: Adding user properties

 

from the quick read your using this within a search I want this to be
like a security filter or a parameter for each web part to only display
the information related to the user ClientID field in the persons
SharePoint Profile. 

 

 

this will basically be a parameter that each of the web parts will use
on the page. Sorry if I've misunderstood the link not enough coffee yet.

 

 

 

 

 

________________________________

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Ishai Sagi
Sent: Friday, 15 February 2008 12:49 PM
To: listserver@ozMOSS.com
Subject: [OzMOSS] RE: Adding user properties

See my blog:

Found it! How to Add Properties To advanced Search in MOSS 2007
<http://www.sharepoint-tips.com/2006/07/found-it-how-to-add-properties-t
o.html> 

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Anthony Hughes
Sent: Friday, 15 February 2008 12:52 PM
To: listserver@ozMOSS.com
Subject: [OzMOSS] Adding user properties

 

 

Hey all,

 

I am attempting to add a user property ClientID I've done this under
User properties and Profiles now when I am attempting to create a
Current user filter by this Value for a current user filter it's not in
the drop down bow.

 

 

I think this is how I go about it basically our db has a field called
ClientID and I'm going to need to enter this for each client suppose if
the above is not correct wondering how I filter the users view by this
field in the SharePoint Profile?

 

Should I be doing via the designer?

 

IMPORTANT -

Please consider our environment before printing this email.

This email and any attachments are confidential and may be legally
privileged in which case neither is intended to be waived or lost by
mistaken delivery to you. If you have received this message in error,
please notify us and remove it from your system. If you are not the
intended recipient, any unauthorised use is expressly prohibited. It is
your responsibility to check any attachments for viruses and defects
before opening or sending them on. Minter Ellison collects personal
information to provide and market our services.

For more information about use, disclosure and access, see our privacy
policy at http://www.minterellison.com

 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 

-------------------------------------------------------------------
OzMOSS.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net 




------------------------------------------------------------------- OzMOSS.com 
- to unsubscribe from this list, send a message back to the list with 
'unsubscribe' as the subject.

Powered by mailenable.com - List managed by www.readify.net

Reply via email to