Hello,
Is there an API that can retrieve the PersonId using the UPN of a person in mingle?
I am trying to get the PersonId so that I can assign a task to that user as it cannot read the UPN of the user (Input from IDM, CreatedBy) .
Thanks.
From Ming.le API:
GET ? /SocialService.Svc?/User?/Detail Get user detail for the identity of the current request having your {userGUID}
Using that userGUID you search the user based on the UPN you have:
GET /SocialService.Svc/User/{userGUID}/SearchUsers Search SocialSpace users
Now you have his userGUID but also his PersonID already but more details can be found via:
GET /SocialService.Svc/User/{userGUID} Get user profile
Hi Ismail,
If I understood you right, you may use IDM's GET "/items/{PID}" API to retrieve the user ID.If I did not get your issue correctly, could you please describe your use case in more detail? Regards,Danil
Thank you, this solution worked for me.
Thank you for your help, the solution by Christian solved my problem.
What I needed to do was retrieve the PersonID using the UPN I got from IDM's GET "/items/{PID}" API in a workflow.
I needed the PersonID so that I could assign dynamically the tasks to which it needs to be distributed to.
1. Using GET ? /SocialService.Svc?/User?/Detail, I got the userGUID containing the person calling the API (Service Account)
2. Using GET /SocialService.Svc/User/{userGUID}/SearchUsers I passed the userGUID I got from step 1 and I just searched the user UPN to get the PersonID.