As far as I can tell, the API does not support assigning group policies by ssid. I should point out that the documentation for setting the policy is incomplete (or inaccurate, depending on your point of view). The valid values for devicePolicy are whitelisted, blocked, normal, group. Note that "group policy" is not a valid value. You can see these values in Meraki's python library (https://github.com/meraki/dashboard-api-python/blob/master/meraki.py#L1327). If a device has group policies set by ssid, you can retrieve the details from the API. Here's what the response looks like: {
"mac": "aa:bb:cc:dd:ee:ff",
"type": "Different policies by SSID",
"ssids": {
0: {
"type": "Normal",
"name": "ssid0"
},
1: {
"type": "Group policy",
"group_number": 100,
"name": "ssid1"
},
2: {
"type": "Whitelisted",
"name": "ssid2"
},
14: {
"type": "Blocked",
"name": "ssid14"
}
}
} Unfortunately, I don't see any way with the current API to set the client policy to something like that.
... View more