I do not have a profile anymore, but my last phone carrier used a messaging profile to route SMS and MMS text messages over the shared networks in my area. I don’t have that anymore. But I intercepted shortcuts still running behind the scenes, when my device got hot. Allowing all accessories means that if they can act like a computer and do malicious activity, they will.
I found that I could force the Wired Accessories, from Always Allow (grayed out by fraudulent administrator controls still lurking on my device), by re-enabling “Lockdown Mode” and restarting the iPhone. The new default is “Ask for New Input Accessories.”
Do not enable Allow when unlocked or you can’t go back to Ask for new devices, without disabling and re-enabling Lockdown.
I like Ask for everything new. Cables you buy online and chargers can all be suspicious, why else do they sell them so cheap.
No administrator profile should have control over this setting in a personal device, strongly question your third party cables and chargers/accessories. They likely injected a malicious code.