How to resolve tokendef error – You Are Secured From This Form ID: Cannot Delete

  1. You may have noticed a tokendef command you no longer need but get an error when trying to delete it.
  2. Simply go into Lawson Security Administrator (LSA) and open the environment profile. Locate a class already assigned to your user and open it.
  3. Add the tokendef you’re trying to delete, apply and clear the server cache
  4. Open tokendef again in Lawson Interface Desktop (LID) under the same user. Locate and select it, press F9 to delete and then save.
  5. Don’t forget to delete the token in Security
  6. That’s it!