User API should return null for last_login where the user has no login

0 Likes

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.

2 Comments
Stef_retired
Instructure Alumni
Instructure Alumni
Status changed to: Open
Comments from Instructure

As part of the new Ideas & Themes process, all ideas in Idea Conversations were reviewed by the Product Team. Any Idea that was associated with an identified theme was moved to the new Idea & Themes space. Any Idea that was not part of the move is being marked as Archived. This will preserve the history of the conversations while also letting Community members know that Instructure will not explore the request at this time.

ProductPanda
Instructure
Instructure
Status changed to: Archived