Trying to create a theme component that shows when text is pasted

Not quite.

They need to be in a group included in user_api_key_allowed_groups (which @nickdb alluded to)

However, regardless of that control, so long as the user is authenticated, an agent can automate via computer use and spoof as a normal user.

AI Computer Use is so advanced and fast now it is, I imagine, fairly hard to detect or defeat.