"No permission to create web service token for the service" with custom service

"No permission to create web service token for the service" with custom service

by Brian Y -
Number of replies: 5

I've gone through the forums and google and can't seem to get this working.

I've followed the documentation to create a new custom webservice with only a handful of functions. I modified the authenticated role to allow for a token to be created but I still receive this error.

I would gather I'm missing something minor. Are there any gotchas?

Average of ratings: -
In reply to Brian Y

Re: "No permission to create web service token for the service" with custom service

by Brian Y -
turns out the user was a site admin which prevented the token from being created.
Average of ratings: Useful (1)
In reply to Brian Y

Re: "No permission to create web service token for the service" with custom service

by Ricardo Caiado -
Picture of Particularly helpful Moodlers
Thanks, Brian!!

Save my day!!

Ricardo
In reply to Brian Y

Re: "No permission to create web service token for the service" with custom service

by Sarita Phoosopha -
Hey, I was wondering how you fixed the problem of a site admin not being able to create a token? I might be having a similar problem.
In reply to Sarita Phoosopha

Re: "No permission to create web service token for the service" with custom service

by Ricardo Caiado -
Picture of Particularly helpful Moodlers
Hi, Sarita.

Create a regular account and use it as your "site admin": http://sandbox.ambientevirtual.nce.ufrj.br/admin/roles/admins.php

That´s how I solve my problem.

Ricardo