Captain-P-Goldfish / SCIM-SDK

a scim implementation as described in RFC7643 and RFC7644
https://github.com/Captain-P-Goldfish/SCIM/wiki
BSD 3-Clause "New" or "Revised" License
122 stars 38 forks source link

/.search should be supported on the root URL #749

Closed Colvin-Cowie-i2 closed 4 weeks ago

Colvin-Cowie-i2 commented 4 weeks ago

Hello, according to RFC 7644 the /.search operation should be available on the system root URL, e.g. at /scim/.search as well as /scim/Users/.search and /scim/Groups/.search etc., so it should be possible to search for users and groups in a single request.

Search [prefix]/.search POST (Section 3.4.3) Search from system root or within a resource endpoint for one or more resource types using POST.

The SDK only seems to support .search within individual resource types as it errors with the request url '/scim/.search' does not point to a registered resource type. Registered resource types are: [/Groups,/Schemas,/Me,/ServiceProviderConfig,/ResourceTypes,/Users]

Captain-P-Goldfish commented 4 weeks ago

This will not be supported. I see what you mean in the example-requests of the specification but I actually do not see valid usecases. If the /.search endpoint is called we need to know the type of resource that we are looking for. If we use /.search on the root-path we lose the information of the resourceType and thus do not know which resources should be returned.

Colvin-Cowie-i2 commented 4 weeks ago

No problem. I assume it's not a widely used feature anyway. Thanks