Done
Details
Details
Priority
Assignee
François Blackburn
François BlackburnReporter
François Blackburn
François BlackburnApprovers
Sébastien Duthil
Fix versions
Sprint
None
Zendesk Support
Zendesk Support
Created October 27, 2021 at 5:51 PM
Updated November 15, 2021 at 6:47 PM
Resolved November 10, 2021 at 6:26 PM
As super-admin of Wazo
I want to define default policies which be available on all my sub-tenant
This is a kind of global policies, but scoped by tenant and its sub-tenant
Behavior
GET /policies and GET /policies/uuid
For owner tenant: these policies will appear with an attribute True/False to distinguish from other policies
For sub-tenant: policies will have read-only: True attribute
For sub-tenant, the tenant_uuid will be the same as their own tenant (same behavior than config_managed policies)
PUT/DELETE policies/uuid
will return 403 for sub-tenants
for the owner, can be done as a standard policy
For DELETE, will delete all association for sub-tenant too
For PUT, the attribute cannot be updated (too complicate to handle True → False transition)
POST /policies
Can be created by ANY tenant even if there is no sub-tenant
Slug will need to be unique across all tenants