Is there a way to swap one configuration for another, depending on if a user is signed in or not?
We have some laptops, and really want to set them up as multi user devices, which for us will mean signing in using NoMad. For this to work, we will need a WiFi configuration to give access to our network, so that the NoMad system can authenticate and log in the user account.
Once the user is signed in, we want the WiFi configuration to switch over to using our main WiFi network. Then when the user logs out, we want the WiFi to switch back to the previous one, totally forgetting the user credentials.
I guess a way to create a smart group based on if there is an account logged in or not will be a good place to start. Then all I would need to do is create the 2 configurations and set them to apply or exclude as required.
But this would need to be done as the user logs in, or as they log out. And the configuration doesnt want to get caught in the middle - One WiFi configuration removed before the new WiFi configuration is sent.
My initial thoughts were an EA, to look for the login, but this will not report back until the device checks in. I also have a bash script that runs via a LaunchAgent for logging in and can easily add to that, but I have nothing running on logout, I know Apple will be turning off login and logout hooks at some point so they are not an option.
Does anyone have any thoughts on how to acomplish this?
Or am I going to go insane running round in circles and never getting there?
All help is greatly appreciated, thank you.