Getting Currently Logged In User via REST

27236

When obtaining the authorization code to authenticate with the REST API, a user needs to log in (or the system uses the currently logged in user).  Is there a REST API call to get that user's user id? I looked through the swagger docs, but could not find anything.

Thanks

  • Chuck Rothman, given the useremail property returned in the access token request/response, i.e.

    https://collaborate.highq.com/sitepoint/api/oauth2/token 

    And the response received:

    {
       "access_token": "...",
       "expires_in": "...",
       "refresh_token": "...",
       "refresh_token_expires_in": "...",
       "token_type": "bearer",
       "useremail": "..."
    }

    Then using the Get User endpoint (type = email) will get you what you want.