Is it possible to change a member approval status by code?

Hi everybody,

We would like to, e.g., block a series of registered members, by code, i.e., change their status from “active” to “blocked”, by using code in the backend.

Another use case would be to have manual approval and then change the status from “pending” to “active” for a series of registered members with such a status.

I could not find anything in the API documentation - can somebody please advise, if this is possible, and possibly refer to some code example?

Thanks in advance & best regards,
Thomas

Did you ever find a solution for this??

We solved it differently. Wix Support nevertheless referred to the Wix users backend API - there are options „by mail“ and „by token“. But am not really sure this would have helped …

@info56409 That does help for what I need! Can you explain more about what you did?

We needed a solution for a migration from one system to another. We have manual membership approval in place. And hundreds of records to migrate. But did not want to click a couple of hundred times on an „aporove„ button. The initial idea was to register new members via code, put them on „pending“ status and then „release“ them by code. At the end, we switched manual approval off for a minute, ran the records through that procedure and switched back to manual. It worked.

What was the code you ended up using?

No code for the topic we are referring to here.