I am using the Kaltura Python Client Library. I’ve run the unit tests that are provided after inputting all my credentials into the configuration file, but I get 9 errors out of the 24 tests. All the exceptions are of the type SERVICE_FORBIDDEN, like this “The access to service [playlist->add] is forbidden (SERVICE_FORBIDDEN)”. I get them for playlist.add (6 times), category.add, metadataprofile.add and widget.list. I’ve also tried to run these services using the API Test Console (https://developer.kaltura.com/console/#/session.end) and it throws the exact same error.
I’m not sure why this is, as I thought I had established an Admin session. Could anybody help me with this issue?
Which server version are you working on? Also, is this Kaltura’s SaaS [www.kaltura.com] or CE/OnPrem?
Which version of the Python client lib are you running?
How did you generate a KS? If you are on CE or OnPrem, you can decode the KS you have by going to Admin Console->system helper->check the ‘KS’ radio button, and input the KS in “String to manipulate:”
@jess, I have realised, thanks to the output you posted, that I had been using the incorrect user ID. I have changed it to “admin” and all the tests pass now. Thank you very much for your help, I’m not sure I would have noticed such a silly mistake otherwise.