Tag via Custom Field
Is it possible to set a tag via Custom Field? For example if I wanted a Custom Field for coverage/plan level of an asset, and then have a tag that includes items based on their custom field value?
10 Replies
This will get you most of the way. Hopefully if there is enough interest they will add something natively.
https://discord.com/channels/1170941416516620306/1386806897591586987/threads/1390513006336807085
I've use the same idea to apply certain things to customer level or assets.


Looking at it now I should have made things more consistent with the naming! but you get the idea.
@Awox not at this stage -- but you can do it in a 2-step process by writing to the registry and then building a tag off that like Dex mentioned.
We are planning to implement tags via GoreloAction in the near future. Would that cover your needs?
Or were you looking to use a custom field so you could choose an option from a dropdown to then apply a tag which would then distribute specific checks/plugins/scripts?
Secondly, are your coverage plans Client-wide or could there be multiple in use across assets for the same client? We're also thinking of Client tags which could then trickle down to assets... but this would only help if your coverage plans are Client-wide.
there could be multiple tiers used across a client
mind if you share how you assign policies based on that?
also what would I use for a macOS endpoint?
Curious that you've gone the custom field route when the policies don't appear to leverage them at all (unless I am missing something)
I kind of started down this path for policy assignment, but I guess the custom fields are probably "cleaner" and more consistent to look at than tags which may or may not be there.

My thinking was custom fields -> tag via
/asset/v1/asset/device/device/tag/mapping
endpoint?Custom field references in a script, sets the registry, Tag gets applied, Policy applied using tags

also on the policies, maybe I am just a psycopath for using long tag names and this is a problem of my own creation, but maybe the tags span a line or two and have a symbol and/or colour to be a little more obvious how the tags are setup without editing the policy? something like
