NodeJS - specific user or group authentication

In OL Workflow, we used the NodeJS module and configured access with ldap authentication. Everything works correctly and provides access without any problems.

Now we would like to be able to give access via ldap only to certain users or to one or more groups of people.
Have any of you ever had this need?
Is it possible to do this? If so, how did you solve it? If not, is there a workaround that helps us?

Thanks for your answer

You can’t do that directly in the preferences.

The name of the user is stored in the incoming XML request, so you could write a condition in your process to determine if that user name is allowed to access the process and if they aren’t, just return an error.