Skip to content

angee.agents.actor_resolvers

Actor-to-user attribution resolvers contributed by the agents addon.

agent_user_id

python
def agent_user_id(subject_id: str) -> Any | None

Return the service-user pk for agents/agent:<subject_id>.

Attribution is a system fact, not an actor read: resolving the user behind an agent must not REBAC-scope through the agent's own permissions, so this uses the base manager under system_context.

Released under the AGPL-3.0 License.