Currently, if you try to search for a custom attribute for the /credentials/search endpoint, all credentials will show up and not filtered. To the best of my knowledge, I believe searching for custom attributes is not supported.