Web Reports 8: Create users with Soap API?

(imported topic written by MattBoyd)

I noticed that the WSDL has a few new methods and types, but I can’t find much documentation about them. I was wondering what new functionality is there, and if there is a way to create/manage web reports user accounts via Soap. Can anyone shed some light?

(imported comment written by BenKus)

Hey boyd,

I believe we added the ability to create web reports users, but I will need to dig up the documentation for you…

Ben

(imported comment written by MattBoyd)

If you are able to find documentation, or even provide a quick explanation of what methods I need to call, that would be awesome.

Prior to version 8, we were creating WR accounts programmatically by making POST requests and parsing the HTML that was returned to determine the result (terrible, I know). Obviously, that’s not working anymore, and it would be great if I didn’t have to shoot myself in the foot again…

(imported comment written by NoahSalzman)

Haven’t tried this myself yet…

Available role types for new users created via SOAP method:

  • Read-Only
  • Normal
  • Administrator
  • Custom Role (Needs to be created via the web interface prior to assigning via SOAP method)

Sample SOAP request for creating a read-only user:

<s:Envelope xmlns:s=
"http://schemas.xmlsoap.org/soap/envelope/"> <s:Header> <h:RequestHeaderElement xsi:type=
"LoginHeader" xmlns:h=
"http://schemas.bigfix.com/webreports" xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance" xmlns=
"http://schemas.bigfix.com/webreports" xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"> <username>your-web-reports-admin-login</username> <password>your-web-reports-admin-password</password> </h:RequestHeaderElement> </s:Header> <s:Body xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=
"http://www.w3.org/2001/XMLSchema"> <CreateUser xmlns=
"http://schemas.bigfix.com/webreports"> <user> <logonName>testuser</logonName> <fullName>Test User</fullName> <password>test-password-goes-here</password> <role>Read-Only</role> </user> </CreateUser> </s:Body> </s:Envelope>

(imported comment written by MattBoyd)

Can’t create custom roles with the SOAP API? Bummer. Well, at least this is a start. I’ll give it a try when I get a chance. Thanks Noah!