How to delete users permanently

804 views
Skip to first unread message

seema cyriac

unread,
Feb 26, 2014, 3:43:12 AM2/26/14
to canvas-l...@googlegroups.com
Hello
  I am in a situation  to reuse existing users, means I would delete a set of users from the courses with sis import(status deleted) and reimport them with status active. But their previous grades will be there in the gradebook  that I dont need actually.How I can delete those users permannetly from database, so that I can reuse them effectively.
 
Thanks for your time
Seema

Cody Cutrer

unread,
Feb 26, 2014, 10:26:40 AM2/26/14
to canvas-l...@googlegroups.com
Seema,

You'll need to change (remove) their SIS ID before deleting them. The easiest way to do this in bulk is to use the API: https://canvas.instructure.com/doc/api/logins.html#method.pseudonyms.update and https://canvas.instructure.com/doc/api/users.html#method.users.destroy.

Cody Cutrer
Software Engineer
Instructure


--
 
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

seema cyriac

unread,
Feb 28, 2014, 6:58:50 AM2/28/14
to canvas-l...@googlegroups.com
THANKS Cody
   But I am using api very first time.I have created access token and executed curl https://<canvas>/api/v1/users/:user_id/logins/:login_id \
  -H "Authorization: Bearer <ACCESS-TOKEN>" \
  -X DELETE.
 I got an error message {"status":"unauthorized","message":"Invalid access token.","error_report_id":2302}

Seema
Reply all
Reply to author
Forward
0 new messages