Global Protect - Display connected gateway.

Smitty479
New Contributor

Hi All,

 

I have a tool that needs to be deployed by region. I am trying to figure out a way to query Global Protect via script to determine the GP gateway that a user is currently connected to? I was hoping I could get this information via an extensions attribute. But, that didn't provide the information either. 

 

Has anyone else been able to obtain this information and have it show in JAMF Pro? 

3 REPLIES 3

A_Collins
Contributor

I have done something similar before, but your case is different. Since you want to deploy GP depending on who will use, I think your best case is to use logged in user. In case of logged in user might be different from the user who will use GP, I suggest you to add preinstall script for GP package with Composer using osascript or dialog box asking user to enter username or region they will be using. 

Let me be even more clear. I need to programmatically obtain the GP gateway the user/machine is connected to without input from the user. I then need the information to be populated into JAMF Pro as an attribute so that I can scope the install of the new tool we will be deploying to our mac users based on the the GP gateway the users machine is connected to. In short, we are deploying Proofpoint Endpoint DLP in our environment and we have global users. We currently don't have the networks configured in JAMF as they are WFH.

A_Collins
Contributor

Then it should be easier if my memory serves me right. GP is putting preferences in users library when connected . You can read the key value from there. Unfortunately we are no longer using gp, so i can not provide exact plist and relative EA.