Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-84047

Admin cannot view web service tokens after token is created by user

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 4.5
    • Web Services
    • None
    • MOODLE_405_STABLE

      I'm working on a data migration project that requires web service keys to be created for each student.

      The main migration app's api token is used to assign the role to users with a URL parameter like:  
      wsfunction=core_role_assign_roles&assignments[0][contextid]=1&assignments[0][contextlevel]=system&assignments[0][roleid]=%s&assignments[0][userid]=%s
       
      where roleid=10 is the student migration role to grant those users permission to use the quiz API and the ability to make webservice tokens.

      I was able to assign the role to users with the web service API above successfully, then was able to make a user token using the Profile > Preferences > Security Keys page.
       
      I then tried to verify the key in the admin's Web Services > Manage Tokens screen, then was presented with an error:

      Exception - core_webservice\reportbuilder\local\systemreports\tokens::get_missing_capabilities(): Argument #3 ($serviceshortname) must be of type string, null given, called in [dirroot]/webservice/classes/reportbuilder/local/systemreports/tokens.php on line 146
       

       

            Unassigned Unassigned
            fortiphyd Fortiphyd
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.