Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

slack scim api - using the FILTER parameter

Tags:

slack-api

scim

I'm trying to use the filter parameter in a RESTful GET request, via this Slack API:

https://api.slack.com/scim

The Docs read:

GET /Users - Returns a list of Users in a paginated fashion. Use startIndex and count query parameters to change pagination results. Supports the filter parameter.

Every attempt at using the filter parameter appended to the request URL, via https://api.slack.com/scim/v1/Users?filter=userName returns this error:

{"Errors":{"description":"no_filters","code":400}}

Anyone aware of a standardized way that the filter parameter is used in API URL?

like image 940
Devin Avatar asked Dec 03 '25 13:12

Devin


1 Answers

They use this format below separated by spaces (%20) . Example without quotes

"email%20co%[email protected]"

"userName%20eq%20joe.schmoe"

eq equal The attribute and operator values must be identical for a match. co contains The entire operator value must be a substring of the attribute value for a match. sw starts with The entire operator value must be a substring of the attribute value, starting at the beginning of the attribute value. This criterion is satisfied if the two strings are identical. pr present (has value) If the attribute has a non-empty value, or if it contains a non-empty node for complex attributes there is a match. gt greater than If the attribute value is greater than operator value, there is a match. The actual comparison is dependent on the attribute type. For string attribute types, this is a lexicographical comparison and for DateTime types, it is a chronological comparison. ge greater than or equal If the attribute value is greater than or equal to the operator value, there is a match. The actual comparison is dependent on the attribute type. For string attribute types, this is a lexicographical comparison and for DateTime types, it is a chronological comparison. lt less than If the attribute value is less than operator value, there is a match. The actual comparison is dependent on the attribute type. For string attribute types, this is a lexicographical comparison and for DateTime types, it is a chronological comparison. le less than or equal If the attribute value is less than or equal to the operator value, there is a match. The actual comparison is dependent on the attribute type. For string attribute types, this is a lexicographical comparison and for DateTime types, it is a chronological comparison.

like image 96
Tae Avatar answered Dec 08 '25 05:12

Tae



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!