Replies: 1 comment 5 replies
-
Hi @velmohan When you need to synchronize a data source with OpenFGA, you would need to somehow subscribe to changes in that data source, so you can properly write / delete tuples when needed. Bulk inserts are useful when you want to bootstrap the system with the initial data, but you would not need upsert for that scenario. If you are using an identity provider that uses Active Directory, and you can get claims in the id token for the specific data you want to use in OpenFGA (e.g. group membership), then you can pass those tuples as contextual tuples. Let me know if this helps, it's a pretty common scenario and we'd like to find a way to make it work. |
Beta Was this translation helpful? Give feedback.
-
I have a scenario where I need to synchronize OpenFGA tuples with some Active Directory (AD) data. Say, for example, the tuple I am interested in adding in OpenFGA is:
user: user:xyz, relation: member object: group:xyz
In order to sync with the AD data, I have to do 3 things in OpenFGA.
As far as I am aware, there is no support for queries like in 1 in OpenFGA yet. So, as tactical solution, I am reading all tuples from OpenFGA to achieve this. Since I have all tuples, then 2 and 3 are easily done. But this solution is obviously not scalable.
Are there any suggestions on how to do this right. Other options I am considering is
Beta Was this translation helpful? Give feedback.
All reactions