2
Update User Access Policy from Flows
Source: directus/directus#25821 · opened by @core-burner
Summary Policy[] in the TypeScript types appears like this is a special relational field that cannot be updated through standard item updates, even in flows. Directus probably has internal business logic that validates and manages this relationship. Unless I am doing something wrong when I am trying to update a user's Access Policies like below. Working around lack of multiple roles with multiple access policies is great but I have different policies that I need to be able to assign to users without giving whatever is controlling the process anything like admin token as a string. I am right now trying to do this via an Endpoint. Basic Example Payload { "key": "eaxyxye4-6254-419c-8907-6619794f9c0b", "payload": { "policies": [ "xe965c67-eydb-414f-ax6c-1b81be4deye9" ] } } Update Data Update Data Options { "permissions": "$full", "emitEvents": false, …
No pledges yet. Be the first to back this.
Comments
Similar requests
Import and export option for flows
82 votes · 0 comments
Enhancing Directus Flows: Versioning, Archiving, and Improved Manageability
28 votes · 0 comments
Insufficient documentation about blocking and non-blocking flows
3 votes · 0 comments
Add Sorting for Manually Triggered Flows
3 votes · 0 comments
Disable flows from running on a specific directus instance
2 votes · 0 comments
No comments yet.