Legacy Dev Forum Posts

 View Only

Sign Up

How to retrieve UserID of an agent based on his Name?

  • 1.  How to retrieve UserID of an agent based on his Name?

    Posted 06-05-2025 18:16

    Mostafa_OUDDERHEM | 2019-10-25 11:04:17 UTC | #1

    Hi All,

    How to retrieve the UserID of an agent based on his name ?

    Thank you in advance


    Becky_Powell | 2019-10-25 14:22:53 UTC | #2

    Hi Mostafa,

    You can use a POST call to /api/v2/users/search to query for a user ID by name (and other fields): https://developer.mypurecloud.com/api/rest/v2/users/#post-api-v2-users-search

    You can try it out using the Search Query Builder in our Developer Tools.

    --Becky


    Mostafa_OUDDERHEM | 2019-10-25 14:35:38 UTC | #3

    Hi Becky,

    I figure it out now, thank you for your help

    Regards


    system | 2019-11-25 14:35:41 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 6345