How to put a user name in a certificate

Good afternoon!
I’m trying to develop a certificate, I took it as an example openedx/certificates.

Please tell me how I can substitute the username? In which variable is it stored? Can I use something like ${User_name}? And what variables are generally available to me in the certificate template?


I think the variable name is accomplishment_copy_name

These attributes of learner who earned a certificate are available in template context

accomplishment_user_id = learner's numeric id e.g 12345
accomplishment_copy_name = learner's full name e.g John Doe
accomplishment_copy_username = learner's username e.g johndoe
1 Like