Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

Audience groups to which the current user is a member of, using API

  Asked By: Abhilash Kurlekar         Date: Dec 25, 2009      Category: Sharepoint      Views: 340
 

Anybody has a .NET code sample to get all those Audience groups to
which the currently logged in user belongs to?

To be more specific -

Assume we have defined 4 Audience groups A, B, C and D

Assume user1 is member of A and B, user 2 is A, C and D and user3
doesnot belong to any of the Audience group.

I want to develop a custom web part. This web part should display
those audience names to which the current user is a member.

For example, When user1 logs on to the portal, this web part should
display "A and B", to user2 it should show "A, C and D" and to user3
it should not dispaly anything.


How to write code using either .NET APIs or WSS web services to
achieve this.

Anybody has a code sample for this?


Please send me the information. I am new to SPS 2003.


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:                        

 

No Answers Found. Be the First, To Post Answer.

 


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].