Skip to main content
Question

How to exempt user from two-factor auth using Box CLI

  • May 22, 2025
  • 2 replies
  • 56 views

Forum|alt.badge.img

Hello.

Please tell me how to exempt two-factor verification using Box CLI.

 

I'd like to exempt two-factor verification for accounts. I used the following command but couldn't that.

box users:update ID --exempt-from-2fa

2 replies

Forum|alt.badge.img

Hello, 

What error are you getting? 

Thanks, 

Alex, Box Developer Advocate


Forum|alt.badge.img

I found that BOXCLI cannot change the exempted two-factor authentication due to an error in the source code.
You can fix the problem with the following fixes:

・CLI ver
v2.9.0

・Bug target file(Number of lines)
src\commands\users\update.js(L21)

・Modification place
before:updates.is_exempt_login_verification = flags['exempt-from-2fa'];
after:updates.is_exempt_from_login_verification = flags['exempt-from-2fa'];