Share Your Experience With Others

java.lang.IllegalArgumentException: User doesn’t have access to use agent

If you are also facing this issue while creating new agent in your salesforce org.

Then you need to create a new agent user with User License Einstein Agent and Einstein Agent User Profile as below and select it while creating new agent.

Once you create this user it automatically assign required permissions using permission sets and permission set groups.

Now user is ready so select it while creating new agent in agent builder.

Or you can select New Agent User while creating New Agent

Once you select this and create new agent, salesforce will automatically create an agent user which you can see later in your agent details.

Follow Youtube Channel For More Content Related to Prompt Templates & Agentforce.

2 responses to “java.lang.IllegalArgumentException: User doesn’t have access to use agent”

  1. Steve Kaminski Avatar
    Steve Kaminski

    Hi. In the training module, I don’t see how/where to create the EinsteinServiceAgent User. I lose my work to go find it, but the training doesn’t show me how to do this

    Like

    1. Kamaal Ahmad Usmani | Salesforce Certified Professional | Avatar
      Kamaal Ahmad Usmani | Salesforce Certified Professional |

      Usually It creates automatically the new Agent User but if you want to use the existing one. You can select it while creating. You can check the user details in Agent Settings.

      Like

Leave a comment