Community

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
msanders
Community Contributor

How can I pull a list of each user's contact information?

Is there a way to pull a list of each user's contact information including any additional contact methods the user has added? The user report only contains the default email address. I did not see anything in the Canvas Data schema that might support this. We have had a few users contact Canvas Support using an alternate email address. When the ticket is turned over to us, we don't know who the email address belongs to.  We would also like to have the information to cross-check our database records.   

6 Replies
mcowen
Instructure
Instructure

Mary,

Check out the API example here: Canvas LMS REST API Documentation

I tried it with https://_____.instructure.com/api/v1/accounts/1/users?search_term=elvis@presley.com  right in my Chrome address bar.

This might be what you are looking for.

msanders
Community Contributor

Thank you!  The search string in the web browser will definitely help as mystery tickets come in.  I will look into the API documentation for pulling bulk data.

fosterl
Community Contributor

Hmm, when I try this, I get:

while(1);{"status":"unauthorized","errors":[{"message":"user not authorized to perform that action"}]}

even when I'm logged in to our Canvas instance (I'm the Admin). I even tried going to doc/api/live and savng my access token, same result. What am I doing wrong? My URL was:

https://myinstitutionnamehere.instructure.com/api/v1/accounts/1/users?search_term=loginIdOfUserAtMyI...

szabarovska
Community Contributor

 @fosterl ​, I am receiving the same error.

Try replacing the accounts/1/users with accounts/self/users

so the full API call would be https://_____.instructure.com/api/v1/accounts/self/users?search_term=elvis@presley.com

The documentation can be found here: https://canvas.instructure.com/doc/api/users.html#method.users.index

szabarovska
Community Contributor

Thank you.

Sabine Zabarovska

Northeast Mississippi Community College

Learning Management Systems Support Specialist