Description:
The REST API allows Upper case String Values and the REST User Search cannot search for upper case values.
Steps to Repeat:
- Log into Blackboard Learn via REST API
- Create a user via REST. Note user created via SIS and GUI will all have the text set to lower case.
- Use POST request to https://clientURL/learn/api/public/v1/users (replace the clientURL for your own URL)
{
"externalId": "J5555",
"dataSourceId": "_2_1",
"userName": "J5555",
"studentId": "J5555",
"educationLevel": "Unknown",
"gender": "Unknown",
"password": "1234",
"name":
{ "given": "andy ", "family": "hulme", "middle": "george", "preferredDisplayName": "GivenName" }
}
Observed Behavior:
"externalId": "J5555",
Use the search
https://clientURL/learn/api/public/v1/users/?externalId=J5555 (replace the clientURL for your own URL)
Empty Array
A direct call will show the information correctly:
https://clientURL/learn/api/public/v1/users/externalId:J5555 (replace the clientURL for your own URL)
Expected Behavior:
The search should either be case-insensitive, REST should set all external Id’s to lower case.
Note: The user "J5555" is not mandatory, it was used just as an example.