How deactivate a user temporary using api

Hey there, I’ve been looking for an answer but I didn’t find anything related.

I want to deactivate a user temporary so the user is not able to login until I reactivate the account. Using the deactivate method seems not to have any type of reactivate options, even without the permanent flag

Hi @mrvn and welcome to the Mattermost forums!

To reactivate a user, you would use the UpdateUserActive API call, at least that’s what mmctl does with its user activate command line option.