How to remove user when you only have email address?

51 views
Skip to first unread message

David Langer

unread,
Mar 6, 2017, 7:26:45 PM3/6/17
to General Open edX discussion
Greetings!

My apologies, but I am new to the Open edX platform. I have a situation where I have a student's email address that I can report out via the "Click to generate a CSV file that lists learners who can enroll in the course but have not yet done so." option in "Data Download". However, I have the following situation:
  1. The student does not remember the username associated with the email.
  2. When the student invokes the "Forgot password?" functionality they receive an error of "No user with the provided email address exists."
Based on my research I can remove users with the Python CLI, but I need both the username and the email. I only have the email.

I've searched the forum, but haven't found an answer. How can I accomplish this using the CLI/API (I would rather not manipulate the DB directly)?

Thanx,

Dave

Colin Fredericks

unread,
Mar 7, 2017, 5:17:01 PM3/7/17
to General Open edX discussion
Here's one option:
  • Go to the instructor dashboard.
  • Click on "Student Admin"
  • Enter their e-mail address into the top box and go to their progress page.
  • Get their username from there.

David Langer

unread,
Mar 8, 2017, 5:25:35 PM3/8/17
to General Open edX discussion
Greetings Colin!

Thank you for the suggestion. I did try that and I get the following error in the UI:

  • Error getting student progress url for 'xx...@xxxxx.com'. Make sure that the student identifier is spelled correctly.
Any other suggestions would be most appreciated.

Thanx,

Dave

Colin Fredericks

unread,
Mar 8, 2017, 6:04:35 PM3/8/17
to General Open edX discussion
Bummer. They must never have verified their e-mail address during signup. Any chance the student has their signup e-mail? I believe it's addressed to their username. If not, they might need to make a new account and you'll just have a "stub" user with no data. 

ali hasan

unread,
Mar 16, 2017, 6:32:48 AM3/16/17
to General Open edX discussion
Go to https://<yoursetupdomian>/admin/auth/user/?q=<Studentemail>
Tick the student object and select delete.
Reply all
Reply to author
Forward
0 new messages