Skip to main content
jaredd697065
September 13, 2021
Question

Allow a Group to Only View A Page

  • September 13, 2021
  • 6 replies
  • 0 views

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
September 13, 2021

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
September 13, 2021

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
September 13, 2021

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.