Welcome to the Panopto Community

Please note: All new registrants to the Panopto Community Forum must be approved by a forum moderator or admin. As such, if you navigate to a feature that is members-only, you may receive an error page if your registration has not yet been approved. We apologize for any inconvenience and are approving new members as quickly as possible.

SOAP API error

Brian YuBrian Yu Tyro
edited January 21 in API

Hello

We are experiencing an issue with Panopto folder access via the SOAP API.

The user Intube4ubase\admin has confirmed permission to access the course folder in the Panopto admin panel. The user can see and access the folder through the Panopto UI without any issues.

image.png image.png image.png image.png

However, when getting the folder information using the SOAP API method GetAllFoldersByExternalId (with the course ID as the External ID), the API call fails with an error "The current user does not have access to call this method."

image.png image.png

In summary:

  • The user has valid permissions at the UI level.
  • The course folder exists and is accessible in Panopto.
  • The SOAP API call GetAllFoldersByExternalId cannot retrieve the folder by course ID.

We would like assistance in understanding why the API call fails despite correct permissions.

Thanks in advance.

Answers

  • Hi Brian,

    How do you authenticate the user prior to calling this method?

    Thanks,

    Adis

  • Brian YuBrian Yu Tyro
    edited January 21

    Hi. Adis

    The purpose of using this api is to get the course selected in the select box in Moodle activity.

    Background===============================

    For Panopto connection, we configure block and lti plugin in Moodle and lti is using soap api.

    Based on the block and lti plugin, we created new panopto plugin which is similar to lti.

    The difference is we use cdn address for Panopto video and we keep the progress record using videojs in our side.

    Issue====================================

    The following is the screenshot of working version… right next to "Add files to", that's the course name.

    We use "GetAllFoldersByExternalId" api with Moodle course id as the parameter and with the result, we pass the folderID as a modalParams for the course to be selected.

    We use "AuthCode" and "UserKey" in the correct format as a authentication method both in SOAP UI and Moodle.

    We set our Panopto plugin for Moodle in 3 different vhost dev servers with same configuration.

    The issue is one server has no problem to use "GetAllFoldersByExternalId" and other servers are not.

    This happens both in our Moodle and SOAP UI. If it works in Moodle, it works in SOAP UI. If not, it doesn't work in SOAP UI too.

    image.png

    Thanks.

    Brian

  • Hi Brian,

    I recommend that you create a support ticket so we can get all the details for this, and I can also try to reproduce.

    Given this only fails on some vhosts, the top causes could be:

    AuthCode FQDN mismatch

    • AuthCode must be generated with the exact host in the SOAP URL. If you switch vhosts, the hash changes.

    Provider name mismatch

    • UserKey must be ProviderName\username and the provider name can differ per vhost.

    Wrong application key

    • Each server/vhost can have a different Public API application key.

    Lets have a support ticket so we can take a look. We will need all the details.

    Thanks,

    Adis

  • Hi Adis.

    Please guide me how I can create a support ticket.

    Thanks,

    Brian

  • Hi Brian,

    If you are a point of contact for your organization you can use https://support.panopto.com/ if not then you can ask contact to create a ticket in your name, and they can cc you on the ticket so you can respond and have communication.
    I think you can also send email directly to [email protected] and that should create a ticket immediately, just put as much details as you can.

    I hope this helps.

    Thanks

Sign In or Register to comment.