User profile for Webaccess

Options

How to obtain the logged in user profile from webaccess while working with web clients in AppWorks platform

Comments

  • Hi Anup,

    There is the Profile API reference, which lacks some crucial information.

    I found some more:

    Profile Resources

    /profile/<username>

    Get = get information for the selected user.

    Input

    Parameter: csoken (String), required. Session token.

    Output

    Return Value: username (String)
    Return Value: email (String)
    Return Value: userID (String)
    Return Value: fullname (String)
    Return Value: firstName (String)
    Return Value: lastName (String)

    Example

    GET /profile/

    Input

    GET /profile/ajewell?cstoken=abc123
    

    Response

    {
      "login": "ajewell",
      "email": "ajewell@opentext.com",
      "userID": "4634",
      "fullName": "Alex Jewell",
      "firstName": "Alex",
      "lastName": "Jewell"
    }
    

    I hope that is what you are looking for.

    Werner

  • CStoken is not in general necessary, but otagtoken is (cstoken is for systems using Content Server instead of OTDS for identity).

    Please see this article for instructions on passing auth information with your requests.