if a harness is used in multiple portal in pega theme comos and it consist of various section and if i want to set a visbility condition for a section in the harness to be visible only in a specific portal what condition could be given.
Hi @abiramb16771746: It is not a good practice to control the visibility of elements using Portal name. Rather you should be using roles / privileges / other appropriate conditions. Please let us know about your use case so that people from community can advise.
@ArulDevan am trying to build a harness consisting 2 sections out of which user Y using portal B can view only one section while user X using portal A can view both sections here Y reports to X, I need both portals for other puposes is there any way to perform this.
Hi @abiramb16771746: Thanks for sharing details. When you say User X and Y using portal A and B respectively, can you also confirm whether these users are mapped to different access groups? If they are mapped to different access groups, you can have different role assigned to each of the access group and in the roles you can add privileges too. Once you have this setup, you can use either the privilege in the section include (View Privilege) or you can use roles (checking role in a when rule and adding the wen rule as visibility condition).