# How do Kandji users make use Extension attributes like within JAMF?

WIth JAMF, you can create extension attributes for just about anything. Is that possible within Kandji?

##### Post Metadata
- Posted at: almost 5 years ago
- Author title: Director of IT
- Net upvotes: 2


## Comments
### Comment 1

There are two common reasons to use an EA: (1) to collect custom details about a device, or (2) to use as criteria for a smart group. To address the first use case, Custom Scripts are pretty flexible. Because Kandji will log everything that gets sent to Standard Out, you can simply call a command that generates the information you want to collect. That output is available in the Kandji web app, and also through the API (https://api.kandji.io). As an example, if you wanted to collect one detail from the system information report, you can combine system_profiler with grep and awk to reduce the response down to just the information you need. Here&#39;s battery cycle count…

system_profiler SPPowerDataType | grep &quot;Cycle Count&quot; | awk &#39;{print $3}&#39;

Run that command in a custom script and the battery cycle count will be recorded in the status result for the custom script. You can then pull that result for each device using the API for device status.

To address the second use case (criteria for smart groups), you can use audit and enforce scripts on your Custom Apps, to decide if you need to install the app or not. If the audit script completes with a non-zero exit code, that tells Kandji that it needs to run the installation (if the script exits 0, that means everything is good and nothing needs to be done). You can put all your checks directly in the audit script (is the app installed? does the existing install meet the minimum version requirement?) and if any checks fail, you can exit 1 (which tells Kandji to run the installer). This approach has the advantage of being very direct. The criteria for making the install decision is on the same page as everything else for that app.

I&#39;m sure there&#39;s some areas where EAs are more flexible, but I hope this addresses the original question!

##### Comment Metadata
- Posted at: almost 5 years ago
- Net upvotes: 1



## Related Product
[Iru](https://www.g2.com/products/iru/reviews)

## Related Category
[Mobile Device Management (MDM)](https://www.g2.com/categories/mobile-device-management-mdm)

## Related discussions
- [How well does Trello scale into a larger team?](https://www.g2.com/discussions/1-how-well-does-trello-scale-into-a-larger-team)
  - Posted at: about 13 years ago
  - Comments: 6
- [Can we please add a new section](https://www.g2.com/discussions/2-can-we-please-add-a-new-section)
  - Posted at: about 13 years ago
  - Comments: 0
- [Quantifiable benefits from implementing your CRM](https://www.g2.com/discussions/quantifiable-benefits-from-implementing-your-crm)
  - Posted at: about 13 years ago
  - Comments: 4


