ListUsers API Improvement #333
flex-seongbok
started this conversation in
Ideas
Replies: 1 comment
-
It doesn't look easy if relations have intersection or difference... hmm |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Please consider adding multiple UserTypeFilter support on listUsers API to implement local index introduced in Search With Permissions Option.2
Sample Authorization Model
The reason why I prefer local index is the characteristic of my application.
user - group - org relations are changing somewhat frequently and objects could be thousands, billions even millions.
In this circumstance if I use listUsers that only returns user to build local index the application will explode due to updating millions local index.
Imagine a scenario that org has millions file that shared to all the org member through org#member relation.
If one user is added to a org then all the local index for million files should be updated to add single user.
This can be mitigated building local index using UserSet not User.
Yes I can use current listUsers to list UserSet but unfortunately file can be shared to user directly too.
For now listUsers API returns either the user or except the user.
If listUsers API supports multiple UserTypeFilter and stop expanding UserSet when it meets any of the passed UserTypeFilter this can be solved.
Summary
Current Limitation:
The listUsers API currently returns either User or UserSet except User
Proposed Enhancement:
Add support for multiple UserTypeFilter options in the listUsers API.
Desired Behavior:
The API should stop expanding UserSet when it meets any of the passed UserTypeFilters.
Use Case:
This would allow to build a local index using UserSets instead of individual User, which is more efficient for scenarios where
It addresses the issue of having to update millions of local index entries when a single user is added to an org, especially in cases where files are shared with all org members.
Beta Was this translation helpful? Give feedback.
All reactions