DatabricksFunctionClient : PERMISSION_DENIED when creating the client

BriceBuso
Contributor II

Hello, 

I'm currently working with Databricks features to create an AI agent system. 
In the documentation it's written that the library DatabricksFunctionClient is needed to register custom tools to UC.  

I followed the different steps from the explanations but when i want to run the code i'm getting a error.  

SparkConnectGrpcException: PERMISSION_DENIED: Cannot access Spark Connect. 
 
BriceBuso_1-1742486473481.png
 
Did you already got this issue ? 
Brice.