Income Taxes - Schedule of Reconciliation of Beginning and Ending Amount of Unrecognized Tax Benefits (Detail) - USD ($) $ in Thousands |
12 Months Ended | ||
|---|---|---|---|
Jan. 31, 2022 |
Jan. 31, 2021 |
Jan. 31, 2020 |
|
| Income Tax Disclosure [Abstract] | |||
| Beginning balance | $ 29,527 | $ 42,695 | $ 37,531 |
| Additions based on tax positions related to the current year | 1,412 | 3,360 | 4,964 |
| Additions for tax positions of prior years | 55 | 16 | 252 |
| Reductions for tax positions in prior years | 0 | (10,212) | 0 |
| Settlements for prior periods | 0 | (6,087) | 0 |
| Lapse of applicable statute of limitations | (110) | (245) | (52) |
| Ending balance | $ 30,884 | $ 29,527 | $ 42,695 |