I use:
def to_param
    user_name
end
and in my active admin user.rb
ActiveAdmin.register User do
  index do
      column :id
      column :email
      column :user_name
      column :created_at
      default_actions
  end
end
That of course gives me an Couldn't find User with id=testuser
How can i specify to Active Admin to use this properly ?
Edit 1: With the answer below it works but def to param get's overwritten on all the app..