You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this only returns security groups, it will still return null if the user is a member of distribution groups, but not security groups. So it's not entirely accurate to say that it will return "null if the user does not belong to *any* groups".
Copy file name to clipboardExpand all lines: xml/System.DirectoryServices.AccountManagement/UserPrincipal.xml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -533,7 +533,7 @@ ctx.Dispose();
533
533
<Parameters />
534
534
<Docs>
535
535
<summary>Returns a collection of principal objects that contains all the authorization groups of which this user is a member. This function only returns groups that are security groups; distribution groups are not returned.</summary>
536
-
<returns>A collection of <seecref="T:System.DirectoryServices.AccountManagement.Principal" /> objects that contain the groups of which the user is a member, or null if the user does not belong to any groups.</returns>
536
+
<returns>A collection of <seecref="T:System.DirectoryServices.AccountManagement.Principal" /> objects that contain the groups of which the user is a member, or null if the user does not belong to any security groups.</returns>
0 commit comments