Open OmarIthawi opened 2 months ago
We need a full /me API to show permissions.
/me
For now we're parsing the edx-user-info and return the following information:
edx-user-info
{ "version": 1, "username": "omarithawi_elc", "email": "o.ithawi-c@elc.edu.sa", "header_urls": { "logout": "https://stage.nelp.gov.sa/logout", "account_settings": "https://stage.nelp.gov.sa/account/settings", "learner_profile": "https://stage.nelp.gov.sa/u/omarithawi_elc" }, "user_image_urls": { "full": "https://nelp-edxapp-stage.s3.eu-west-1.amazonaws.com/edx/var/edxapp/media/profile-images/065645134530d372df0384ed084648e9_500.jpg?v=1711707506", "large": "https://nelp-edxapp-stage.s3.eu-west-1.amazonaws.com/edx/var/edxapp/media/profile-images/065645134530d372df0384ed084648e9_120.jpg?v=1711707506", "medium": "https://nelp-edxapp-stage.s3.eu-west-1.amazonaws.com/edx/var/edxapp/media/profile-images/065645134530d372df0384ed084648e9_50.jpg?v=1711707506", "small": "https://nelp-edxapp-stage.s3.eu-west-1.amazonaws.com/edx/var/edxapp/media/profile-images/065645134530d372df0384ed084648e9_30.jpg?v=1711707506" } }
We need a real backend API that shows the information above in addition to the following data:
is_staff or is_superuser
course_access_roles
true/false
We need a full
/me
API to show permissions.For now we're parsing the
edx-user-info
and return the following information:We need a real backend API that shows the information above in addition to the following data:
is_staff or is_superuser
in a single fieldcourse_access_roles
true/false
someone can be a data_researcher but not a tenant admin