Permissions
The List’s roles option controls who can view it by default. For
example, roles: [sales] lets users with the Sales role view the
Web orders List. The default policy also lets
them update records if the List defines an update callback. Creating
and deleting records require separate Cedar grants as well as the
corresponding callbacks.
For example, add these rules to cedar/custom.cedar to let Sales users
create and delete records in Web orders:
permit ( principal is PF::ProviderUser in PF::Role::"/Sales", action == PF::Action::"create", resource == PF::List::"/web-orders");
permit ( principal is PF::ProviderUser in PF::Role::"/Sales", action == PF::Action::"delete", resource == PF::List::"/web-orders");The rules are separate so you can allow creation without allowing deletion. They apply only to Web orders; users still need permission to view the List.
Give a system identity read access
Section titled “Give a system identity read access”A system identity
doesn’t get access through the List’s roles option. To let a reporting
service read Web orders, configure it to authenticate as order-reporting
and add this rule to cedar/custom.cedar:
permit ( principal == PF::ServiceAccount::"order-reporting", action == PF::Action::"view", resource == PF::List::"/web-orders");The resource ID is the full List path, including the leading /.
This rule grants read access to that List only. It does not let the
service create, update, or delete records or start a process.