Home Analyst Portal
Options

Using API GetUserSearchResults call to retrieve session.user details

Jerry_VeldhuisJerry_Veldhuis Customer Advanced IT Monkey ✭✭✭
Seems like it should be so simple... but how do I use GetUserSearchResults to retrieve the associate CI for the current user ?
I'm looking for basically what I see in the pageForm.viewModel.AssignedWorkItem structure.

thanks
jerry

Best Answer

  • Options
    Jerry_VeldhuisJerry_Veldhuis Customer Advanced IT Monkey ✭✭✭
    Answer ✓
    Think I figured out:
    $.getJSON('/api/V3/User/GetUserRelatedInfoByUserId',{"UserId":session.user.Id},
              function(data) { var obj=jQuery.parseJSON(data); console.log(obj); });
    Although this has some overhead as it includes a MyRequest array of all of the users requests.

Answers

  • Options
    Jerry_VeldhuisJerry_Veldhuis Customer Advanced IT Monkey ✭✭✭

    Can anyone from Cireson support give me some direction please ? I'm trying to get this to work in both 4.0.10 and 7.4.2012.3.

    thanks

  • Options
    Jerry_VeldhuisJerry_Veldhuis Customer Advanced IT Monkey ✭✭✭
    Answer ✓
    Think I figured out:
    $.getJSON('/api/V3/User/GetUserRelatedInfoByUserId',{"UserId":session.user.Id},
              function(data) { var obj=jQuery.parseJSON(data); console.log(obj); });
    Although this has some overhead as it includes a MyRequest array of all of the users requests.
Sign In or Register to comment.