Closed sumedhe closed 1 week ago
curl --location --request GET 'https://localhost:9443/scim2/Users?attributes=username&filter=username+EQ+kim+AND+emails+EQ+kim@abc.com' \
--header 'Authorization: Basic YWRtaW46YWRtaW4='
username+EQ+man
curl --location --request GET 'https://localhost:9443/scim2/Users?attributes=username&filter=username+EQ+kim+and+emails+EQ+kim@abc.com' \
--header 'Authorization: Basic YWRtaW46YWRtaW4='
Issue 5: Case Insensitive nature of 'and' operation for multi-attribute filtering.
- Create a user and assign values for username [Eg.kim] and email [Eg. kim@abc.com]
- Try the following CURL that uses 'AND' as the multi-attribute filter conjunction
curl --location --request GET 'https://localhost:9443/scim2/Users?attributes=username&filter=username+EQ+kim+AND+emails+EQ+kim@abc.com' \ --header 'Authorization: Basic YWRtaW46YWRtaW4='
- The above request only considers the first part of the filter. i.e
username+EQ+man
- Try the following CURL that uses 'and' as the multi-attribute filter conjunction and the operation works.
curl --location --request GET 'https://localhost:9443/scim2/Users?attributes=username&filter=username+EQ+kim+and+emails+EQ+kim@abc.com' \ --header 'Authorization: Basic YWRtaW46YWRtaW4='
- The concern here is whether is it good to have a case-sensitive filter operation.
Quoting from the specification[1]
Attribute names and attribute operators used in filters are case
insensitive. For example, the following two expressions will
evaluate to the same logical value:
filter=userName Eq "john"
filter=Username eq "john"
[1]https://datatracker.ietf.org/doc/html/rfc7644#section-3.4.2.2
Filtering with the count parameter retrieves only the entries in lowercase.
Ex: Even though the userName Kim
is present, for the scim2 GET request
https://localhost:9443/scim2/Users?filter=userName%20Eq%20Kim&count=5
the response is
{
"totalResults": 0,
"startIndex": 1,
"itemsPerPage": 0,
"schemas": [
"urn:ietf:params:scim:api:messages:2.0:ListResponse"
]
}
For the userName tim
, the GET request
https://localhost:9443/scim2/Users?filter=userName%20Eq%20tim&count=5
returns the correct user details of user tim
.
This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!
The identified issues listed here are,
MySQL
).Application/MyApp
) is not working.Issue 1: Filtering for application/hybrid roles does not work with multi attribute filtering.
How to reproduce: Create application/hybrid role and assign to a user. Filter users with application/hybrid roles with the created role as shown below. The expected result would be returned
Filter users with application/hybrid roles with multi-attribute filtering as below.
Expected behavior:
Issue 2: Multiattribute filtering with group and username filtering is not working with secondary userstore (MySQL)
How to reproduce: Create a MySQL secondary userstore. Create a user (
john
) and a role (manager
) in that userstore and assign the role to the user.Expected behavior:
Issue 3: Filtering for application/hybrid roles with the domain name (ex:
Application/MyApp
) is not working.How to reproduce: Create an application/hybrid role and a user and assign that role to the user.
Expected behavior:
Issue 4: The roles created in the secondary userstore are not fetching properly via SCIM.
How to reproduce:
US-A
) (Tested for MySQL).manager
).US-A/manager
) which is expected.US-A
).US-B
).US-B/manager
)Note: However you can see that role in the management console even it is not coming with the SCIM call.
Expected behavior: In the Step 5, you should receive the created role in that userstore.
Environment information :