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.
How to change ownership after uploading using sessionUpload?
Hi.
I have a case where I have managed to:
- Make a folder using an admin account using the API.
- Set the permissions in that folder to inherit the top folder (personal folder) permission making the ownership of the folder go to the user
- Upload videos using the API to the new folder
But when the user is trying to share the video the Admin account will need to "allow" them to share it as they are somehow the owner of the files. Is there a method to use the API to make a process where I change the ownership of the videos?
Tagged:
0
Answers
okey, while searching a bit i found this: ISessionManagement.UpdateSessionOwner from the soap api.
I made some code to connect myself to the soap api:
This code uses the token I get from using the legacylogin to send stuff to soap. but when running I'm getting problems with finding out the "newOwnerUserKey". I am guessing it is the user_id to the user?
And the "sessionIds" is either one of these that i find on the videos:
Am I using this right? or is this only made for Folders? And how do i find out what to send as "newOwnerUserKey" and "sessionIds"?