IsCurrentUserMemberOfGroup and Active Directory Groups

rss

Posted by RMIC - Mar 15 ’16 at 08:48

 

Dear Sir or Madam,

at last I have an problem with active directory groups and the function „IsCurrentUserMemberOfGroup“ from http://spform.com/documentation/groups/functions.

 

I would like to organize memberships of groups with active directory groups. I have changed the SharePoint group from user to only one active directory group. Now the formulars with the User-defined rule „IsCurrentUserMemberOfGroup“ is not shown by users. I think the problem is, that the active directory group will not expand to the users.

Is there a solution for this problem in your opinion?

 

 

Thank you for your help.

Yours sincerely

  • rostislav
    rostislav
    Moderator
    Member for: 4 years 7 months 2 days
    #1 by rostislav Mar 16 ’16 at 10:00

    Hello,

    This functionality should be working for AD groups too, as per this Microsoft's documentation page: https://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spgroup.containscurrentuser.aspx

    SPGroup.ContainsCurrentUser is the property used to determine whether a group contains a specified user, and it works for AD groups too: "For example, if the group object contains a domain group that contains the current user, this property returns true. "

Displaying 1 to 1 of 1 messages