# app/avo/resources/user.rb
class Avo::Resources::User < Avo::BaseResource
  def actions
    # Basic registration
    action Avo::Actions::ToggleInactive
  end
end
```

:::warning
Using the Pundit policies, you can restrict access to actions using the `act_on?` method. If you think you should see an action on a resource and you don't, please check the policy method.

More info here
:::

Once attached, the action will appear in the **Actions** dropdown menu. By default, actions are available on all views.

:::info
You may use the customizable controls feature to show the actions outside the dropdown.
:::

<Option name="`arguments`" headingSize="3">

The `arguments` option allows you to pass custom data to your action. These arguments are accessible throughout the entire action class including the `handle` and `fields` methods.

```ruby{5-7,11-15}