Legacy Dev Forum Posts

 View Only

Sign Up

OAuth - Get logged in user's information

  • 1.  OAuth - Get logged in user's information

    Posted 06-05-2025 18:02

    narodel | 2020-05-15 11:41:22 UTC | #1

    Hi,

    I'm using implicit grant so users get a token to make API calls (https://developer.mypurecloud.com/api/tutorials/oauth-implicit/?language=javascript&step=1).

    However this only gets me a token back. Is it also possible to get the user's - who has just logged in - info, like name or e-mail?

    The reason I'm asking, is because I have a tool with several pages, and I want users to only see the pages I want them to see. For this I will need the currently logged on user's information.

    I know I could do this using a second log on page + database, but I'd prefer it if users only need to log on once.


    Jason_Mathison | 2020-05-15 12:29:59 UTC | #2

    Check out this route: GET /api/v2/users/me

    --Jason


    system | 2020-06-15 12:29:40 UTC | #3

    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: 7798