What is the Mandotory Payload to getregisteruser I am missing something passing only username but may be I am missing something

Comments

5 comments

  • Avatar
    Loren Bratzler

    I have not used the REST activity to get user info but I used to use a WCF service.  However, it is much easier to just use the built-in AgilePoint activity "Get User Information"

    0
    Comment actions Permalink
  • Avatar
    Harish lakshmana

    Udaya, 

     

    I believe you have gone through the documentation  https://documentation.agilepoint.com/11/developer/restmethodGetRegisterUser.html which has sample code and Request payload also.

    Can you check for the error status code and error message returned by the API call? It would generally contain the actual error details.

     

    Regards,

     Harish

    0
    Comment actions Permalink
  • Avatar
    Udaya Pakalapati

    It is 405 but as per the documentation passing the  userNmae which I need details 

     

    payload = {
    "userName": domain\\testuser,
    }

     

     With Post call looks it is not honoring for GetRegisterUser  but we are getting  the result for GetRegisterUsers

    0
    Comment actions Permalink
  • Avatar
    Harish lakshmana

    405 means Method Not Allowed. The problem you are facing is due to the HTTP Verb, not payload.

    I see that your code says requests.post but seems like Request object is not getting created as POST method call.

    0
    Comment actions Permalink
  • Avatar
    Loren Bratzler

    Again, I would ask why not use the built-in "Get User Information" activity from the AgilePoint activity stencil?

    0
    Comment actions Permalink

Please sign in to leave a comment.