Hello,
Already found a post on this topic but i did not find an answer.
Background : a workflow is launched manually by a user (through dedicated widget). The goal of this WF is to send an email after getting some datas in IDM. I would like to dynamically retrieve the email adress of the user that launched this WF (i don't want them to enter their email address as a workflow parameter).
3 steps to retrieve the email address:
1) get SOURCE() in a workflow parameter

--> it seems to be the PersonId value from Mingle
2) get the userGUID of the service account with proper credentials
3) use /SocialService.Svc/User/{userGUID}/SearchUsers

I noticed that some users in Mingle have their PersonId value = userGUID value. Other users have PersonId value = ERP Alias value (why ?)
Anyway, the call of this API fails whenever i search with the ERP Alias value (error code 205 below); i even tried with the SearchString parameter : no result. It is working fine if the "userName" parameter is filled with value of the GUID.

Can someone tell me why PersonId parameter equals sometimes userGUID and sometimes ERP Alias ? I know there is a parameter in the security administration that forces PersonId with userGUID value if you have selected "Autoamtic Setting". In this case, PersonId field is in display mode only

Why this API does not work when searching with a string that corresponds to an ERP Alias ?
Thanks.