FeatureFuel
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.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests