Hi All,
I am facing an issue with “MembershipMicroView” control.
On Profile Page (person.aspx Page) in My Site MembershipMicroView is placed on right Web Part Zone.
This is used to display all the Distribution/Security groups, logged in User is Member of in AD by default.
But when User Click on any of group in the list the mailto: always appears to be null, which is an issue.
In AD all the distribution/Security group is assigned to the one Email ID.
After a deep research and Refactoring the “MicroSoft.SharePoint.Portal” dll :-
public class MembershipsMicroView : PrivacyItemViewer
Name: Microsoft.SharePoint.Portal.WebControls.MembershipsMicroView
Assembly: Microsoft.SharePoint.Portal, Version=12.0.0.0
I Found that for displaying the list, Microsoft wrote the Function called “RenderItemLink”.
Which in turn uses the logic for AD Groups as described below:-
string url = "mailto:" + membership.MembershipGroup.MailNickName;
I found that MailNickName property always bring the NULL result which is very confusing. Also I don’t find any field in AD for Group which is related to MailNickName.
If I use “URL” property always has the value like “mailto:EmailAddressofTheGroup”
So if the above code is replaced with below may work fine;-
string url = membership.MembershipGroup.URL;
I want to know did anyone had faced any such issue ??? Or ever looked into this Or Have any idea about “MailNickName” property.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment