Is there a way to get a list of users with partial match on userId?

Hello,

I’m trying to generate a list of users in the KMS with certain patterns in the userId field. The “Manage Users” page in the KMS UI doesn’t not allow me to search that way unless I’m missing a setting or something. Is there a way to do this with an API call?

Thanks,
Kumi

Hi,

You can do:
user->list() with filter:objectType=KalturaUserFilter and then user:
idOrScreenNameStartsWith=“jess"
or
idEqual="jess.portnoy@kaltura.com"
or:
idIn="jess.portnoy@kaltura.com,someone@else.com

Thanks for your quick response, Jess.
I was hoping there was a “contains” search filter - I don’t see it as an option supported in KalturaUserFilter. Do you know any other way to accomplish this?

Thanks,
Kumi

Hi,

I suggest you go here:
http://www.kaltura.com/api_v3/testme/

in service choose user, choose list as action, under KalturaUserFilter, hit edit, which will open a sub form with all available options.

The test me console can also generate code but note that it does not always produce working examples. Nonetheless, for checking out the available options, this is a good tool.

I’ll give it a try - Thanks again, Jess!