On the Agent Builder page, each Agent has an “Access Control” section.

After you configure which Roles should have access to this agent, click Save Access Control.

Admin role will always have access to all agents.Testing Sandbox page as well.Please configure a fallback role for non-registered users and non-configured test-cases.