I'd want to use Zapier to create users, which if I understand how it works, will be users created through API.
First, I need to create a connection between Zapier and my site, and I want to create a specific Role and a specific user with that role, which can only create users (so I can avoid using admin access in the process). Since it'll be through API, my guess is that it's not enough to simply create a role that can create users from the back end....
I've seen all the GET, POST, etc..... stuff, so I guess I need to select some of these to ensure Zapier (through the specific user with the specific role) can create users (based on a specific trigger I'll define).
So I have trigger (with user infos (name, email, pasword) -> zapier -> wp user creation (as subscribers)
Is that clear?
I checked the ones which seems related to users and wp (so not the ones for other plugins)
JSON GET /wp/v2/users -> but maybe not...
JSON POST /wp/v2/users -> this one seems like what will happen (zapier will "get" username, email, and password from elsewhere to create a new user and "post" it to wp, right?)
JSON GET /wp/v2/users/(?P<id>[\d]+) -> Yes, no?
JSON POST /wp/v2/users/(?P<id>[\d]+) -> Yes, no?
JSON PUT /wp/v2/users/(?P<id>[\d]+) -> Yes, no?
JSON PATCH /wp/v2/users/(?P<id>[\d]+) -> Yes, no?
JSON DELETE /wp/v2/users/(?P<id>[\d]+) -> I don't want to allow this
JSON GET /wp/v2/users/me -> Yes, no?
JSON POST /wp/v2/users/me -> Yes, no?
JSON PUT /wp/v2/users/me -> Yes, no?
JSON PATCH /wp/v2/users/me -> Yes, no?
JSON DELETE /wp/v2/users/me -> I don't want to allow this
XML POST wp.getUsersBlogs -> This might be needed if the users are created with subscriber role (to read the blog articles)?
XML POST wp.getUser -> Yes, no?
XML POST wp.getUsers . -> Yes, no?
XML POST blogger.getUsersBlogs -> Yes, no?
XML POST blogger.getUserInfo . -> Yes, no?
And this is where I need your help : can someone help me with the specific API stuff I need to enable for users to be created via API?
Thanks a lot in advance,
PS: I just saw there https://developer.wordpress.org/rest-api/reference/users/#create-a-user
That create a user uses -> POST /wp/v2/users
But I'll wait for your input to ensure this is all that I need to update in AAM setings.