I have this need.
I would like that during the enrollment phase, if a user belongs to a certain list, he is added to a static group.
I don't know if there is something similar or a different and simpler approach for my need.
Basically I have 100 users with an Office 365 license and I would like that only those entitled to be able to install the available software on self-service.
In my imagination the ideal script should do this:
an enroll policy that checks whether the email address present in the user & location section is contained in a specific file on Google Sheet.
I use something similar to rename Macs, this script actually downloads the .csv file locally (with serial and asset name) and writes it to jamf pro with the -fromfile function (bash).
While in my case I should probably use the API to write to the static group.
Any suggestions or help would be greatly appreciated. Obviously I also accept different approaches, which however are not manual (at the moment I check each enroll via webhook and quickly add by hand if the user has the license).
Thanks everyone