Access to Sections

Is there a good way to conditionally render a section based on a users access or privileges.

I’m trying to prevent certain users from seeing the “Actions” and “Edit” dropdown and button in the assignment view, but I haven’t found a good way to do so. I know I can add privileges to the individual buttons, but was wondering if I could apply the same kind of logic to an entire section.

Hi @DevinD16607791: You can add privileges to the sections when you are embedding them in a flowaction/ harness/ in another section. There will be option for you to mention a visibility condition / privilege. Please let me know if this helps.

You can also add privileges to the flow action rule itself in security tab.

Thanks.

@ArulDevan I believe I’ve already tried that, but no luck.

The Case Action Header section in pyCaseMainInner has the CaseAdministrator view privilege associated to it.

I’ve assigned this privilege to the ClaimsProcessing:SVPManaged access role via Access of Role to Object,

But all users are able to view the section regardless of access group and role. A user with the following roles is able to view the section:

The only solution I’ve found to work so far is creating a when rule that checks for hardcoded access group values.

Hi @DevinD16607791: Thanks for highlighting this. Further analysis shows that there is some issue when using privileges in a section which is built using design template. You may need to raise a support request for the same.

Meanwhile instead of hardcoding the access group, you can still check the privilege in the when rule using HavePrivilege RUF.

Suggestion: It is recommended to add the Privilege in the respective flow action too.

Thanks.