Hide function definition in Unity catalog

NehaR
New Contributor III

Hi ,

I have created a function to anonymize user id using secret.

I want to give access of this function to other users so they can execute it without giving access to the secret .

Is it possible in databricks? I have tested it and see user is not able to access the function without required permission on the secret. 

Please suggest if there is any other better approach.