In trying to troubleshoot an issue with @UserRoles in a hide/when formula, I found the following in the Notes 8 designer documentation:
“Only roles explicitly assigned to the current user are returned. Roles assigned to a group which includes the current user are not returned.”
Is this trying to tell me that unless the user is EXPLICITLY in the ACL with a role, a formula that uses @UserRoles will not work? Maybe I am crazy, but I am sure I have done this forever with no problem, but now it is giving me a problem for a particular user.
Thanks,
Subject: problems
As you, I have used the ability to assign groups to roles in the ACL. Mainly to be able to modify the ACL by editing groups - and not the ACL.
Has this changed? - Yikes!!
Subject: dont think so
The problem I am having caused me to stumble on this little piece of documentation, but I don’t think so. Look for another main posting if you are curious about what issue I am having. It’s a fun one. Getting ready to post it right now.
Subject: @userroles tested OK
I am guessing what this piece of documentation is referring to is that you can use a user’s name but not a group - ie in a formula:
@IsMember(“[Design]”; @Userroles) vs.
@IsMember(“SomeGroupName”; @Userroles)
I just tested this against 2 databases, one where I am named individually and the other where I get access only as a member of a group.
I placed a computed for display field on a form and computed it only to @userroles. In both cases it returned the correct list of roles that I belong to.