I'm trying to make certain fields on a form only visible to administrators. I have set the visibility to Expression to
However the form is not hiding the fields. Instead it shows the fields to all users.
I also tried setting the expression to fn-IsMemberOfGroup(Administrators) with the same results.
Does this feature work on Nintex Forms for Office 365?
Solved! Go to Solution.
I set up the following Single Line Text Box. When I run the form, both values return False in the Text Box. I have confirmed that I am in the Administrators Security Group. So one of these should return true.
I don't have a solution for this, but I'm seeing the same thing. Have tried different formats (and different groups) of the function:
Always returning FALSE, when the user is a direct member of the group.
I'm on a on-prem installation of Nintex Forms 2013 version 126.96.36.199.
fn-IsMemberOfGroup("[YOUR GROUP NAME]")
fn-IsMemberOfGroup('[YOUR GROUP NAME]')
fn-IsMemberOfGroup([YOUR GROUP NAME])
Double check the notation and make sure you are referring to a SharePoint group, not an AD group. If that doesn't solve the problem, look at the permissions for the user viewing the form. Make sure you DO NOT use the system account. ALso ensure that the system account is not part of the group you are testing against.
If neither of those suggestions work, please log a ticket with our support team so we can backtrack it through the appropriate channels.
Even though we are using SharePoint Online, the security groups had been setup as AD groups. I had to mirror these groups in the site specific area. Once I did this, I was able to get the fn-IsMemberOfGroup(groupname) to work correctly
Just to follow up with this question;
The inline function 'IsMemberOfGroup' in O365 only references Sharepoint groups. David was trying to reference O365 AD groups which this inline function cannot query.
What is the proper way to allow multiple groups access to the object? Say I want to allow access to a form panel to members of the physician group and office groups?