Skip to main content
Soumyadip Daripa 님이 Slack + Agentforce에 질문했습니다

Hi, 

I was trying to call an employee agent through agent API but I am getting below error when passing bypassUser as true: 

"error": "AgentApiException",

 "message": "Bad Request: Invalid user ID provided on start session: " 

 

And when I am passing bypassUser as false, the employee agent's action is not getting called. 

 

Am I missing something? Please let me know! Thanks!

답변 2개
  1. 2025년 10월 29일 오전 10:56

    So, if in your Agent API request, if you pass 

    bypassUser=true

    then Agent gets invoked as user associated to the agent as per documentation

    If you set this flag as false, the user associated to Connected app is referenced while invoking agent. 

    So make sure if you are setting this as true your agent user has necessary permissions

0/9000