Check 'Organization' membership in Jira Expression

In JSM cloud, in a workflow condition I wish to check whether the logged in user is member of a JSM organization to allow the transition.

I am trying to script the same using JMWE jira expressions.

is it possible for me to make API call to servicedesk from Jira expressions? Can I please have any sample syntax ?