We use a shared technician account in each customer organisation for short, temporary connections. To make sure a downloaded profile can’t be left behind and used later, we want to give that account a new key every week, so every old profile stops working at once.
Today the only way we’ve found to do that is to delete the user and recreate it with the same name and settings. That changes the user ID, drops registered devices and the OTP secret, and means re-applying settings such as the 2FA bypass, groups, DNS and port forwarding through the API. If any step fails partway, the organisation is left with two users or none.
Request: an endpoint, plus a button on the user’s page, that issues a new certificate/key for an existing user and revokes the old one immediately. It would keep the user ID and all settings. Something like PUT /user/<org_id>/<user_id>/key (like the existing /otp_secret reset), with an option to also reset the OTP secret.
As far as we can tell, the renew-org approach lets old user certificates keep working until they expire, so it doesn’t cover this case.