For a custom Headless Umbraco 9 solution we're looking at utilizing the Restrict Public Access feature to have a custom role-based permission system on which nodes you can access from an API endpoint.
For this, we were wondering if it is possible to programmatically get the configuration/restrictions on a specific Content Node, as configured in the 'Restrict Public Access' section of Umbraco? I couldn't find anything specific for this on the Docs myself!
Getting the 'Restrict Public Access' settings
Hi Umbracian!
For a custom Headless Umbraco 9 solution we're looking at utilizing the Restrict Public Access feature to have a custom role-based permission system on which nodes you can access from an API endpoint.
For this, we were wondering if it is possible to programmatically get the configuration/restrictions on a specific Content Node, as configured in the 'Restrict Public Access' section of Umbraco? I couldn't find anything specific for this on the Docs myself!
Thanks!
Kind regards,
Corné Hoskam
Would that be the
IPublicAccessService
?Matt
Hi Matt,
That appears to be the service that I was looking for! Much appreciated!
Kind regards,
Corné Hoskam
is working on a reply...