Create User via REST API

Comments

5 comments

  • Avatar
    Brian Bontrager (Edited )

     

    You might check %ProgramData%\Sisense\PrismWeb\Logs 

    You might not be including the header "Content-Type: application/json" ?

    (When I leave that out, using curl, I also get a 500 response, and I see more detail in nodejsLogs4.log )

    A good way to see well-formed requests is to use the REST API Reference in the Sisense Admin tab.  When you submit a request through that interface it will show a sample CURL command with all relevant headers, and you can compare that to what you are sending in postman, your own API, etc.

     

    0
    Comment actions Permalink
  • Avatar
    Kuba Borucki

     Hi Brian! Thanks for that. Logs didn't really help but useful to know how to get to them!

    I used the REST API in the Sisense Admin, initially that didn't help but then I discovered you can import the CURL into Postman - all I needed to do then was add the authorization into the head and it's all good now! 

    The mistake I was making (in postman) was that I was adding the JSON as a parameter, whereas it works by entering it straight into the "raw" tab so pretty simple mistake in the end.

    Just need to work out how to get my app to do that and I should be good - thanks for pointing me in the right direction!

    Kuba

     

    0
    Comment actions Permalink
  • Avatar
    Siva

    HI,

     

    I am getting the same error in 7.1.Can someone please post sample code to work with create user API end point.

     

    Regards,

    Hemanth

    0
    Comment actions Permalink
  • Avatar
    Delsaran Bigglesworth

    This worked for me:

    0
    Comment actions Permalink
  • Avatar
    Delsaran Bigglesworth

    I have a REST API question about posting new users. I'm trying to post bulk ad user with the bulk endpoint, and it shows that I can put groups in but then when I creates the new user it doesn't assign them to the group?

    Anyone had any issues with this. I know this is just one user in the example; just testing it out small.

    0
    Comment actions Permalink

Please sign in to leave a comment.