I want to restrict to execute all activities apart from one activity

I want to restrict to execute all activities apart from one activity, how to achieve this, can any one suggest please

Create a dedicated Privilege rule and use it to control activity execution. Configure the privilege on every activity that the user should not be allowed to run. Do not apply the privilege restriction to the one activity that must remain executable. Remove that privilege from the user’s Access Role so the restricted activities fail the authorization check. Keep the required activity accessible through the user’s normal role and application flow. This ensures the user can execute only the permitted activity while the other protected activities are blocked.