@bm11100 Is this specific metadata that you want to add to some agents in a single agent policy? For example, you have a single agent policy that includes endpoint agents deployed on laptops of org1, org2 and then you want to add org as a metadata key and assign values org1 to laptops of org1 and similar for org2. Either at install time or after it has been installed through some api call.
If yes, we don't support that yet but it would be great if you could file an enhancement Issues · elastic/beats · GitHub
Today, the only way you could do that is by create different agent policies per org and including them in policy name or provide org names in namespaces when you create agent policies.