The Suspend API is not working as expected. Geoffrey_Challen reported that the API was previously working, but now it only increments the suspended count without actually suspending the user. zogstrip suggested checking if the issue is present when suspending a user through the UI.
awlogan and jomaxro mentioned that the suspend dialog was recently updated, which may have caused the API documentation to become outdated. Geoffrey_Challen found a workaround by posting the form contents instead of JSON.
huberfe asked if the ‘forever’ option is available via the API. eviltrout, the developer who made the recent suspend improvements, suggested passing a date about 1000 years into the future to achieve the ‘forever’ option.
sarahann and blake discussed the format of the date for the suspend_until field, with blake providing the correct formats: yyyy-MM-DD or yyyy-MM-DD+hh:mm-z:zz for more granular control.
Again, this worked fairly recently. But now when we run it: (a) the suspended count shown on the user page goes up by one, but (b) the user is actually not suspended correctly. They don’t show as suspended in the UI, and return as active the next time we pull the users list.
It seems like there was an update to the suspend dialog. I can now pull down an option that says forever vs. the 9999 days use, as well as an email reason for the suspension. I don’t remember seeing that before, but I could be wrong as I only suspend people when they leave the company (so far). I would expect that the API would need to change, probably the doc hasn’t caught up to it.
OK, thanks for all the help. It threw me off a bit that the new suspend UI is using a form, rather than posting JSON, but posting the form contents seems to work fine.
I like to think medical advances will someday lengthen lifespan. Pessimist that I am, I don’t hold hope that I’ll see a day of the year 2291 (five nines, 99999 days)