Make WordPress Core

Opened 4 weeks ago

Closed 4 weeks ago

Last modified 4 weeks ago

#64626 closed feature request (worksforme)

Capability for generating Application Password

Reported by: leedxw's profile leedxw Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Application Passwords Keywords:
Focuses: Cc:

Description

We've been asked by a client if we can restrict application password generation to a particular user class.

However, my understanding is that application password generation is not governed by a specific capability.

Change History (3)

#1 @Ov3rfly
4 weeks ago

  • Resolution set to worksforme
  • Status changed from new to closed

You can restrict to user role or capability with wp_is_application_passwords_available_for_user filter, a code example is available in Application Passwords: Integration Guide.

#2 @sabernhardt
4 weeks ago

[50114] introduced six fine-grained capabilities after the Integration Guide was published, including create_app_password.

#3 @johnbillion
4 weeks ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.