Protect Function


I created a Function that takes 3 parameters (dateInitial, dateFinal and groupdId). It has System Authentication.

Users have a custom parameter called groupId.

I specified an authorization expression to load this function only if the groupId argument passed to the function is equal to the custom groupId parameter of the user who called the function, but it does not work.

Where am I going wrong?