Hi,
I have a new portal and i am wondering if there is a way I can show/hide certain pages in the portal depending on who is signed in. I only use invitation only authenticated users so everyone will be in the contacts records but some I need to see some pages and some I need to see others.
If anyone could point me in the right direction I would be very grateful.
Kind regards,
Matt
Thank you so much for taking the time to answer. You have solved my problem! I was totally confused as to why I couldn't solve this myself, I made the rookie error of assuming I had to set each web role to be relevant for either a authenticated user or not so I checked the boolean to true and it applied all of my web roles to all authenticated users! I couldn't understand why everyone could see everything. Reading through your answer and the link you added resulted in me realisisng my mistake! Thanks again.
Hi Matthu,
To show/hide pages you can configure role wise web page access control for a page.
You can manage web page access control in two ways:
Refer below article for step by step solution:
docs.microsoft.com/.../webpage-access-control
I hope it helps,
Thanks.
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365
Hi Matthu,
Maybe you can use ‘Web Roles’ and ‘web page access control rules’ to achieve it.
1.create a custom web role and assign contacts you need.
A contact can be assigned a web role. A web role is very similar to a CDS security role that we would assign to a user.
For the most part, you would assign a contact to the web role much like a CDS user is assigned a security role for specific privileges.
Once the Web Role is created, it can be assigned to the Contact record.
2.Web Page Access Control Rule.
The web page access control rule can be set to levels or privileges, “restrict read” which basically means any portal contact with a web role linked to the web page access control rule can “read” the web page on a portal. The other is “Grant Change” which means that users have the ability to modify any of the editable static content (content snippets, page title, page copy, etc) from the legacy front side editing tools, if they have the content editor permissions.
When you create a ‘restrict read’ rule for a page, the page is blocked for all. And then you have to assign web roles to this rule to explicitly make this page available to users in that web role.
Once the Web Page Access Control Rule is created, then assign specific Web Role(s).
For more information, you can refer following link:
PowerApps Portals: How to Hide or Show Content based on Logged in User – ReadyXRM
Regards,
Leah Ju
Please mark as verified if the answer is helpful. Welcome to join hot discussions in Dynamics 365 Forums.
i like this<a href="www.google.com/.../a>
i like this[url=https://www.google.com/]post[/url]
Muhammad Shahzad Sh...
51
Most Valuable Professional
Ramesh Kumar
42
David Shaw_UK
27