# Anyone plz help me, can anyone tell me how can i enroll user into a course from my local system

**URL:** <https://discuss.openedx.org/t/anyone-plz-help-me-can-anyone-tell-me-how-can-i-enroll-user-into-a-course-from-my-local-system/14580>\
**Category:** Development\
**Tags:** edx-platform, api, how-to\
**Created:** [December 14, 2024, 11:00am UTC](https://discuss.openedx.org/t/anyone-plz-help-me-can-anyone-tell-me-how-can-i-enroll-user-into-a-course-from-my-local-system/14580 "2024-12-14T11:00:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shahzad\_Baloch](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/shahzad_baloch/32/7785_2.png) [@Shahzad\_Baloch](https://discuss.openedx.org/u/Shahzad_Baloch)\
**Post date:** [December 14, 2024, 11:00am UTC](https://discuss.openedx.org/t/anyone-plz-help-me-can-anyone-tell-me-how-can-i-enroll-user-into-a-course-from-my-local-system/14580/1 "2024-12-14T11:00:40Z")

</div>

can anyone help me or guide me how i can enroll a user into my edx course without making him logged in ?

i am trying to call this [https://www.grassroots-dev.online/api/enrollment/v1/enrollment](https://www.grassroots-dev.online/api/enrollment/v1/enrollment)  
with these json  
{

```
"action": "enroll",
"course_id": "course-v1:mexyon+SEOMex1+SEOMex1",
"id":2,
"user": "Shahzadbaloch43333@gmail.com",
"course_modes": "honot",
"is_active":true

```

}

i have tried everything but its keep responding me  
{  
“message”: “Course ID must be specified to create a new enrollment.”  
}

then i find that i only can enroll a logged in user into a course…

is there any way to enroll a user into my open edx course with just course id user id or email or username with api secrect key and super admin access token without making him logged in???

---

<div class="post-metadata">

**Author:** ![sarina](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/sarina/32/2308_2.png) [@sarina](https://discuss.openedx.org/u/sarina)\
**Post date:** [December 19, 2024, 3:25pm UTC](https://discuss.openedx.org/t/anyone-plz-help-me-can-anyone-tell-me-how-can-i-enroll-user-into-a-course-from-my-local-system/14580/2 "2024-12-19T15:25:55Z")

</div>

You can enroll a user in a course via the Instructor Dashboard without making them log in.

---

<div class="post-metadata">

**Author:** ![mslyon](https://avatars.discourse-cdn.com/v4/letter/m/a3d4f5/32.png) [@mslyon](https://discuss.openedx.org/u/mslyon)\
**Post date:** [December 27, 2024, 12:17am UTC](https://discuss.openedx.org/t/anyone-plz-help-me-can-anyone-tell-me-how-can-i-enroll-user-into-a-course-from-my-local-system/14580/3 "2024-12-27T00:17:27Z")

</div>

you cannot do use that API…I’m stuck with the same…as this API is only for the logged users.
