Skip to main content
jaredd697065
Participating Frequently
Sep 13, 2021 5:08 PM UTC
Question

Allow a Group to Only View A Page

I have two viewer groups with end users in them. My goal is to have one group that can only view a specific page and another group that can view and interact with the functionality on the page (Add items, delete items, reorder items, etc.)

How could I accomplish this? 

6 replies

jaredd697065
Participating Frequently
Sep 13, 2021 5:11 PM UTC

As an example I have a button that allows a user to add an item. But for my view only group, I just want them to see the button and not interact with it. 

stefanhelzle0001
Brainy
Sep 13, 2021 5:48 PM UTC

Interface objects have showWhen and some have disabled parameters. Add a condition using a!isUserMemberOfGroup() to check whether the logged in user (loggedinuser() function) is member of that group. Store your groups in constants.

docs.appian.com/.../fnc_people_a_isusermemberofgroup.html

peter.lewis
Employee
Sep 13, 2021 7:46 PM UTC

Yeah what Stefan described is a good approach. One thing to keep in mind is that there isn't a site-wide "Disable" or "Read-Only" option. Instead, you probably need to set the property for each component within a UI individually. There's also a good example if you use the "Create from CDT" template in Interface Designer that shows how to have a single interface that can be either editable or read-only based on a condition. If you use that as a starting point, you can then use the function above to actually set up the conditional logic.