@MichelRueger Yes, good call, I missed the schedule option, but I don't think that'll do what you need as the client can only be in one group policy at a time, so if they try to access the internet when the time schedule is set to off (for the policy they have been assigned), they won't get any access, as the schedule is off.
You need to be able to toggle clints between 2 different policies,....Sadly, I think API scripts is the only way to be able to do that
Scrub above, testing shows that when the time schedule is off for the policy (i.e. that allows P2P) then the client is assigned 'normal' access (no policy) and the default settings (i.e. no P2P) for the SSiD is applied, so @MichelRueger , yes your solution will work