Skip to content

How to Limit Passkeys to Certain Roles

Allowed Roles decides who may add and use passkeys. Empty, the default, lets everyone.

Open Configuration → Security and add roles to Allowed Roles, such as Administrator, Shop manager and Editor. Click Save Changes.

The Access section of the Security tab

A customer’s My Account menu loses Passkeys, and no invitation shows. The passkey button stays on the login form, because the store cannot know who is signing in until the passkey answers.

Amara’s My Account menu without Passkeys

On the demo, Amara’s passkeys were saved while customers were allowed. With customers left out, her Mac’s passkey is refused: “Passkey login is not available for your account.” She signs in with her password.

The not available message under the passkey button

Her passkeys are kept. Adding Customer back to the list makes them work again.

  • A customer outside the roles who opens /my-account/passkeys/ directly sees “Passkeys are not available for your account.”
  • To make a role use passkeys, not just allow them, see How to Require Passkeys for Staff.