This PR adds a REST API scope for user status:
https://github.com/discourse/discourse/pull/19149
It’s possible now. Note, that you need to use an API key with the All Users level to do it:
More details about using Discourse REST API is here – Discourse REST API Documentation.
