19
Snapshot, diff, and apply for roles and permissions
Source: directus/directus#21124 · opened by @becdetat
Summary Similar to the excellent schema management endpoints, there should be a way to manage roles and permissions. This is similar in spirit but not implementation to Basic Example Three new API endpoints, similar in operation to the existing /schema/* APIs. access-control might not be the best name but this is the idea: • GET /access-control/snapshot - Retreive a snapshot of the access controls, including roles and permissions • POST /access-control/diff - Retrieve the diff between the posted snapshot and the current access controls • POST /access-control/apply - Apply the posted diff This will allow programmatic management of access control across Directus instances, removing the need for human interaction to build applications across different environments, and make it possible to store access control configuration in source control as a JSON file, alongside the schema JSON. Motivation We want to create Directus applications in a repeatable fash…
No pledges yet. Be the first to back this.
Comments
Similar requests
Code-first configuration of schema, roles and permissions
274 votes · 0 comments
Force Schema Diff possibility via REST
5 votes · 0 comments
Ability to Hide Visual Editor Extension for Specific Roles
1 vote · 0 comments
Manage Multitenancy with Users Logging in via Keycloak
1 vote · 0 comments
Different permissions depending on rows accessed
1 vote · 0 comments
No comments yet.