How to modify the Login ID for a user?

Jump to solution
MikeBrinkman
Community Participant

I've been playing around with the API to get a better understanding of how it works.

We have our users log into Canvas with a user ID comprised of their first initial and last name. We will often have students that change their names due to getting married, which changes the login ID. Looking at the documentation for put /v1/users/{id}, I don't see any way to change the login ID. Is there something I'm missing?

0 Likes
3 Solutions
chriscas
Community Coach
Community Coach

Hi @MikeBrinkman,

I believe there is a different API for that, since a single user can have multiple logins (though in most situations, there is just one).  You'll want to check out https://canvas.instructure.com/doc/api/logins.html#method.pseudonyms.update for details about editing login information.

-Chris

View solution in original post

dgrobani
Community Champion

I was perplexed for a moment until I saw this under Edit a user: "To modify a user's login, see the documentation for logins." I think you want Edit a user login.

Edit: ah, I see Chris beat me to it.

View solution in original post

@MikeBrinkman 

You will want to make sure you are using the id of the Login that you want to update rather than the id of the Canvas user.  You may need to use an API call to get the logins for the user so that you can determine the login id.

View solution in original post