when querying user information via the REST API, the user status always returns as "active" regardless of whether the user is actually active or not.
accountStatus isn't reporting site membership. Atlassian defines it as the lifecycle status of the Atlassian account itself, three values, active, inactive and closed. An invited person who hasn't accepted yet still has a perfectly good account, so it reads active. Inert for what you want. On my own site it comes back active for a user with no Confluence access at all.
Membership is modelled separately in the org admin API, where the user object carries membershipStatus (active, suspended, no_membership) next to accountStatus, plus a composite status over the two. Needs an org admin API key. And even there the enum has no invited in it, the nearest is not_invited.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.