HELP: Script for adding computers to STATIC GROUP

BlackTiger
New Contributor II

Hello,

I have a question and a couple of request: 

1. If I run a script with API credentials on students' machines, is there a way students can find or check the credentials? 

2. I want a working script which will prompt to select a static group and after selecting it, the computer should be automatically added to that particular static group. I have tried many scripts and for some reason its not working. I gave up and decided to get help from this awesome place. I am pretty sure many would have done this and will have a working script. 

Thanks.

2 REPLIES 2

sdagley
Esteemed Contributor II

@BlackTiger Running a script on a Mac to add it to a static group via the API is not recommended by Jamf. Here's a post from several years ago on how I used a script/Extension Attribute/Smart Group combo in order to allow users to put a Mac in scope for something via Self Service:

https://community.jamf.com/t5/jamf-pro/self-service-policy-to-display-a-list-of-static-groups-and-pr...

howie_isaacks
Valued Contributor III

I have used this approach a lot and it works really well. I have also used MUT to add a lot of Macs to a static group. It works really well for that. I do that only when I have to add 50+ Macs to a group.