Technical Tip: Removing old FortiToken references from users in bulk
| Description | This article describes how to remove all previous FortiToken references from the users through a script which is essentially helpful in case of RMA when Tokens need to be moved to a new device. |
| Scope | FortiGate |
| Solution |
Result:
Regular Expression:
set fortitoken "FTKMOB[A-Za-z0-9]{<No. of characters following FTKMOB>}"
Example:
set fortitoken "FTKMOB[A-Za-z0-9]{10}"
After Replacement:
Regular Expression:
set email-to "([^"]*)"
Regular Expression:
set passwd-time.*$
Regular Expression:
set passwd.*$
^\s*\r?\n
|









