AnsweredAssumed Answered

User REST API calls

Question asked by albcc81 on May 29, 2017
Latest reply on Jun 6, 2017 by goh.ian

Hi everyone,

I'm getting started with API REST, and I've found a problem getting user info, when the externalID contains a dot "." With this example.., I get a successfull response:

 

(myServer)/learn/api/public/v1/users/externalId:administrator

 

id"_1_1"
uuid"70d4ee5c32f34a4484874854d1beb166"
externalId"administrator"
dataSourceId"_1_1"
userName"administrator"
studentId"6545"
educationLevel"Unknown"
......

 

But, with the same end-point, if I change the externalID with other one containing a dot inside, I get this error message:

(myServer)/learn/api/public/v1/users/externalId:demo.test

 

 

status404
message"Could not find object with ID: externalId:demo"
extraInfo"6b8276e60f17406cbc939a2b4943a8f3"

 

The user "demo.test" exist in my Bb platform, but, noticed that this error message  truncates the externalID from the dot, and in fact, it seems that the API is looking for the user "demo", which in fact doesn't exist. So..in my institution almost 100% of our users contains a dot in their externalID. How can I get the user info for this cases, using externalId? Maybe I'm doing something wrong?

 

Regards

Outcomes