Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

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

  Asked By: Abhilash    Date: Dec 25    Category: Sharepoint    Views: 1366

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.

Share: 

 

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

 




Tagged: