Skip to main content
Box Employee
May 22, 2025 12:50 PM UTC
Question

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

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

    Box Employee
    May 22, 2025 12:51 PM UTC

    Hello, 

    What error are you getting? 

    Thanks, 

    Alex, Box Developer Advocate

    Translate
    Box Employee
    May 22, 2025 12:51 PM UTC

    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'];

    Translate