Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Re: enrol_manual_enrol_users roleid parameter

$
0
0

by Juan Leyva.  

Hi,

via get_course_user_profiles you can obtain the list of roles for an existing user including the roleid and roleshortname, this should be help you to find the correct roleid for your role (based on the shortname).

Is not the best solution, but it seems the only way to do it right now

Definitively, that function should support role shortname instead role ids

Juan


Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>