INCOME TAXES (Details) - USD ($) $ in Thousands |
3 Months Ended | ||
|---|---|---|---|
Apr. 30, 2023 |
Apr. 30, 2022 |
Jan. 31, 2023 |
|
| Income Tax Disclosure [Abstract] | |||
| (Benefit from) provision for income taxes | $ 4,363 | $ 296 | |
| Income (loss) before provision of income taxes | $ 7,997 | $ 870 | |
| Effective income tax rate (as a percent) | 54.60% | 34.00% | |
| Unrecognized tax benefits (excluding interest and penalties) | $ 87,700 | $ 87,900 | |
| Unrecognized tax benefits, income tax penalties and interest accrued | 5,300 | $ 5,200 | |
| Decrease in unrecognized tax benefits is reasonably possible | $ 7,000 | ||