forked from owncloud/ocis
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(graph): add support for filtering users by type
This add support for equality filters on the `userType` property of users for the /users endpoint. It also changes the behavior of the /users endpoint to only return federated users when explicitly request via a `userType` filter. E.g. to search for federated users with matching "albert" you can use: `$filter=userType eq 'Federated'&$search="albert"` Related Issue: owncloud#9702
- Loading branch information
Showing
4 changed files
with
109 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Enhancement: OCM related adjustments in graph | ||
|
||
The /users enpdoint of the graph service was changed with respect to how | ||
it handles OCM federeated users: | ||
- The 'userType' property is now alway returned. As new usertype 'Federated' | ||
was introduced. To indicate that the user is a federated user. | ||
- Supported for filtering users by 'userType' as added. Queries like | ||
"$filter=userType eq 'Federated'" are now possible. | ||
- Federated users are only returned when explicitly requested via filter. | ||
When no filter is provider only 'Member' users are returned. | ||
|
||
https://github.com/owncloud/ocis/pull/9788 | ||
https://github.com/owncloud/ocis/pull/9757 | ||
https://github.com/owncloud/ocis/issues/9702 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters