For the connector “Remove.bg” it makes sense to enable users to filter for transparent images that the connector created, whether or not they are related to the original. This can be achieved with the following filter.

Show Items with an alpha channel (ARGB) uploaded by a connector service user.

{
    "kind": "AndFilter",
    "filters": [
        {
        "kind": "TermFilter",
        "field": "imageMetadata.channels",
        "term": "Argb"
        },
        {
        "kind": "TermFilter",
        "field": "audit.createdByUser",
        "term": "e12e84c97419476c8a58bb7c8e09ed57"
        }
    ]
}
CODE

Will filter for all Content Items:

  • with an Alpha channel (channels in the image metadata, where A in Argb stands for Alpha)

  • created (uploaded) by the service user used for the integration

You can add contentTypeId for File Types, too and only show images:

{
    "kind": "AndFilter",
    "filters": [
        {
        "kind": "TermFilter",
        "field": "imageMetadata.channels",
        "term": "Argb"
        },
        {
        "kind": "TermFilter",
        "field": "audit.createdByUser",
        "term": "e12e84c97419476c8a58bb7c8e09ed57"
        },
        {
			"kind": "TermFilter",
			"field": "contentSchemaId",
			"term": "ImageMetadata"
		}
    ]
}
CODE