AdminAid: switch user, inspect objects, translate classes
This page is for administrators who debug a site. AdminAid is a debugging helper with four tools:
| Tool | What it does |
|---|---|
Switch user (/aid/user_switch/<user id>) | Log in as any user from an admin account, without the user's password, to see the site as that user sees it. |
| Object view and object list | A detailed overview of a content object's data, and a list of all objects of a class. |
| Class translation | A simple interface for translating the attributes of a content class. |
| Search | Look up ids in the database across configured tables. |
Use it safely
The author's warning stands: do not run it on a live server for more than a limited time. It is a potential security risk, even though in theory it is secure.
- Grant the policy functions of module
aid(user_switch,object_view,class_translate,search) to your own role only. - Set
LimitByIP=enabledand put your address inIPList[]. - Activate the extension and do your work.
- Remove the extension from
ActiveExtensionswhen you are done.
Settings
| File | Block | Key | Default | Meaning |
|---|---|---|---|---|
aid.ini | Aid | UserSwitchIDLimit[] | 14 | Only users with these ids may switch user |
aid.ini | Aid | UserClass[] | user | Classes that represent a user |
aid.ini | Aid | LimitByIP | disabled | Enable an IP limit |
aid.ini | Aid | IPList[] | empty | Allowed addresses |
aid.ini | SearchDatabase | ClassList[] and more | Tables and columns searched |
This repository received only funding metadata in the Exponential 6 period.
Related pages
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.