Get a user by email - Groovy script

1
0
-1

I'm trying to dynamically assign a task to a user. I only have the email as a way to identify the user.

So how can I retrieve a user by email?

I know that we can use the below to get the user by a specific username

return apiAccessor.getIdentityAPI().getUserByUserName('username').id

Comments

Submitted by romain.bioteau on Thu, 08/19/2021 - 10:15

Hi,

Where this email comes from ? Is it stored in the User contact data ?

No answers yet.
Notifications