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

Re: Create a user for a webservice automatically

$
0
0
by Martin Mastny.  

Hello Pablo,

I was also experiencing this kind of issue. My problem was, that my plugin was just for teachers, so when somebody is assigned as a teacher I also have to assign a web service user role to him. I solved this by creating a simple DATABASE TRIGGER that inserts another role to mdl_role_assignments.

You can generate a token for user on the fly :

http://docs.moodle.org/dev/Creating_a_web_service_client#How_to_get_a_user_token 

Hope this helps

Martin


Viewing all articles
Browse latest Browse all 2361

Trending Articles



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