[wp-trac] [WordPress Trac] #39544: REST API: Improve users endpoint in multisite

WordPress Trac noreply at wordpress.org
Mon Apr 17 10:12:43 UTC 2017


#39544: REST API: Improve users endpoint in multisite
----------------------------+-----------------------------
 Reporter:  flixos90        |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  REST API        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:  multisite
----------------------------+-----------------------------

Comment (by flixos90):

 Replying to [comment:9 jnylen0]:
 > > `POST wp/v2/users?email=<existing-email-address>` adds an existing
 user to the current site
 >
 > For this particular case, it may be better to add a separate endpoint.

 While I certainly don't like `POST wp/v2/users?email=<existing-email-
 address>` to handle this, I think it would be best if we could figure out
 a proper way to allow adding existing users through the same endpoint.
 This would provide parity with user removal (from a site), as it also
 happens through the same endpoint that is used to delete a user
 (entirely).

 > However, this still seems like a fairly uncommon use case compared to
 other user management tasks and should be fine to be addressed later on.

 Not sure if we should postpone that decision, as I don't consider it an
 uncommon use-case. In the admin there's UI to add an existing user which
 is just as prominent as creating a new user and adding them.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39544#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list