# Get user info in Custom JavaScript Display and Grading

**URL:** <https://discuss.openedx.org/t/get-user-info-in-custom-javascript-display-and-grading/1484>\
**Category:** Development\
**Created:** [February 26, 2020, 2:49pm UTC](https://discuss.openedx.org/t/get-user-info-in-custom-javascript-display-and-grading/1484 "2020-02-26T14:49:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gigi1988](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@gigi1988](https://discuss.openedx.org/u/gigi1988)\
**Post date:** [February 26, 2020, 2:49pm UTC](https://discuss.openedx.org/t/get-user-info-in-custom-javascript-display-and-grading/1484/1 "2020-02-26T14:49:04Z")

</div>

How i can get user id in Custom JavaScript Display and Grading?  
This %%USER\_ID%% work only in HTML editor.  
I need user\_id for authentificate with my remote service for check programs from learners.

---

<div class="post-metadata">

**Author:** ![gigi1988](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@gigi1988](https://discuss.openedx.org/u/gigi1988)\
**Post date:** [February 28, 2020, 9:06am UTC](https://discuss.openedx.org/t/get-user-info-in-custom-javascript-display-and-grading/1484/2 "2020-02-28T09:06:17Z")

</div>

I expanded the description of the problem. I need to create a remote check code from students on my service. I create problem with template Custom JavaScript Display and Grading. I create html and js that interact with my service. But i cannot get user id and send to my service. How I can get the userid in problem with Custom JavaScript Display and Grading? This `%%USER_ID%%` works only in HTML editor.
