I am trying to delete expired splash Guest user accounts from the dashboard using the API. This can only be done for authorised users. So first I have to re-authorise the users before then deleting them. The script works but I am recieving emails. As seen below I have set the emailPasswordUser = False and I am still getting emailed. I need to fix this before I put it into production as I don't want large numbers of emails being sent to end users.
networkAdded = dashboard.networks.updateNetworkMerakiAuthUser(
networkId, userId,
name=User["name"],
emailPasswordtoUser=False,
password=password,
# isAdmin = false,
authorizations=[{"ssidNumber": ssidNumber,
"authorisedZone": "XXXXXXX",
"authorizedByName": "XXXXXX",
"authorizedByEmail": "XXXXXX",
"expiresAt": response[0]}]