Showing results for 
Search instead for 
Did you mean: 
dal Participant

ISE v2.0 Guest Rest API - errors when trying to create Guest user

I have a script made in Postman for Chrome that I plan to use for making guest users.
In ISE v1.3 it worked fine, but not in v2.0

I have made changes to the script according to the new versjon of the API, but it still does not work.

The script looks like this:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns4:guestuser xmlns:ers="" xmlns:xs="" xmlns:ns4="">
        <fromDate>18/11/2015 23:22</fromDate>
        <toDate>19/11/2015 23:22</toDate>

When I try to run it, I get this error:
<title>XML Schema Validation Failed :: at line 8, column 19 : cvc-complex-type.2.4.a: Invalid content was found starting with element 'location'. One of '{validDays}' is expected.</title>

When I move <validDays> one line up, I get this error:
<title>XML Schema Validation Failed :: at line 9, column 19 : cvc-complex-type.2.4.d: Invalid content was found starting with element 'location'. No child element is expected at this point.</title>

And of course, if I try to remove <location> (or fromDate or toDate), I get this error:
<title>Validation Error - Mandatory fields missing: [location]</title>

So, a classical Catch22

Seems like a bug to me. Or am I doing something wrong?



Hi Dal,

Hi Dal,

You are correct, it is a bug that appeared in 2.0. Like you I ran into this problem and the bug is specified here (CSCux39158) in Ciscos Bug Search-tool. The solution is to use the correct order in the XML-scheme but they fail to specify what the correct order is... Fortunately I've discovered it through trial and error and here it is:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns3:guestuser xmlns:ns3="">

I hope this is helpful for you!

CreatePlease to create content
Content for Community-Ad
August's Community Spotlight Awards