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.

Determine Video Visibility in API

Hi, we would like to seek for advice about the problem we met while retrieving specific sessions from folder.

For your information, our current flow is calling the "/getFolderList" at first to get the sessions' id based on searchQuery, then calling "getSessionsById" based on the previous method's result. This flow is able to let us to retrieve the video's info we want.

However, the account we are using to perform the flow is Administrator role. Regardless of the visibility setting from the portal, our flow is still able to get all the videos that are matched with the searchQuery.

Could someone please advise which API or variable we could use to determine if the video is hidden from viewer, so that the result could be filtered?

Thanks and Regards.

Tagged:

Answers

  • Kevin BaumKevin Baum Panopto Employee

    Hello,

    The best way to determine which videos a user has access to is to call the API with that specific username as part of the authentication if you already know who the user is. If the user is an external (SSO) user, you can send their userkey and a generated authCode as part of the authentication, without requiring their password.

    Depending on what information you would like to get, you can also switch to using the REST API, which uses OAuth2 and access tokens for user authentication, rather than sending a user name or password/authCode. You can still search for sessions using the REST API, as well as get specific session information for a session based on its ID.

    You can also use the IAccessManagement.GetUserAccessDetails SOAP API to get a list of folders that a user has access to, and a list of sessions that the user has direct access to, if you need to filter the results in your application. This endpoint requires an administrator to call it, and accepts a UserID as an input parameter, returning all of the folders and sessions the user has access to.

    I hope that this helps. Please let me know if you have any other questions.

    Thanks,

    Kevin

  • Hi.

    Late reply, but I think you can use ISessionManagement.GetSessionsAvailabilitySettings() to check if the sessions supplied are viewable to Viewers or not.

Sign In or Register to comment.