IsCurrentUserMemberOfGroup and Active Directory Groups

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
RMIC
Posts: 96
Joined: Sun May 10, 2015

15 Mar 2016

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

User avatar
rostislav
Moderator
Posts: 364
Joined: Mon Oct 19, 2015

16 Mar 2016

Hello,

This functionality should be working for AD groups too, as per this Microsoft's documentation page: https://msdn.microsoft.com/en-us/librar ... tuser.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. "

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 20 guests