User API should return null for last_login where the user has no login
When an admin calls the user API with include=last_login Canvas returns a HTTP 500 error where the user in question has no login associated with their account.
In the UI the user only has 'Add Login' under the 'Login Information' area.
The base API call for the user works (returns HTTP 200):
https://myschool.instructure.com/api/v1/users/3
This is the same API call with last_login added (returns HTTP 500):
https://myschool.instructure.com/api/v1/users/3?include[]=last_login
Instead of returning a 500 error the API should return last_login=null to maintain consistency with other users who haven't logged in.
Labels
2 Comments
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.