Add Service Account experiment#211
Draft
Jameswlepage wants to merge 4 commits intoWordPress:developfrom
Draft
Conversation
a73b04a to
add9f04
Compare
Contributor
Author
|
Note; we will need to remove provider specific labels (Claude Code) if this gets closer to being a real thing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Exploring the concept of a true "service account"; something a real user can create as a way for a service, like Claude Code, an automation tool, or an API can use to interact with WP in a safe, auditable manner. It's an actual new user type, and I've hacked a bit to get some of the UI "core-like". If it moves closer to a core feature, we'll need to rethink but for now, I'm interested in thinking around ... "do we need this"?
Why?
Service accounts enable automation and non-interactive access while keeping user activity traceable in logs and revisions. This is core-aligned functionality that needs dedicated UX and API support.
How?
Testing Instructions
POST /wp/v2/service-accounts,GET /wp/v2/service-accounts,POST /wp/v2/service-accounts/{id}/app-password.Testing Instructions for Keyboard
Tabto reach the Role dropdown on Users > Add New.Tabto the Service account name field.Tabthrough username/email (read-only) and password.Tabto submit and pressEnter.Tabto the Application Passwords section and generate a password.Screenshots or screencast