I would like to ensure an auto-deployed script is only executed when the current logged on user property equals the primary user property. Eg: if “tmcgroga” is the primary user on the machine then the script will only execute if “tmcgroga” is the current user.
I can’t figure out how to use my custom primary user property in the relevance?! Seems very simple, but i’m stuck. Any help is greatly appreciated!
It sounds to me like you are trying to run a Fixlet or Task and use something like the following in your relevance:
(results of property “primary user” = current user)
This is not possible but we can take a different approach. It is important to understand you cannot refer to existing properties in your relevance of a Fixlet.
A little more info. As you probablyknow:
A “property” uses relevance to retrieve information from an endpoint.
A Fixlet/Task uses relevance to determine if it is applicable and can execute on an endpoint.
Relevance is EXTREMELY fast in most cases so instead of allowing you to query a property you will simply copy the relevance and reuse it in your Fixlet.
For example:
To compare, custom property: “primary user” to “logged on user” you would simply copy and paste that relevance into your Fixlet such as: