This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Getting or setting newly added Guest Users' passwords, only using the API

Hello,

I'm trying to add new Guest Users to my XG firewall by using the API, but I'm not sure how am I supposed to get the passwords for the newly created Guest Users.

More specifically, I'm adding new Guest Users by using the following reqxml argument:

<Request APIVersion="1702.1">
    <Login>
        <Username>apiuser</Username>
        <Password>[redacted]</Password>
    </Login>
    <Set operation="Add Single OR Multiple Guest Users">
        <GuestUser>
            <Name>guestuser</Name>
            <UserValidity>30</UserValidity>
            <ValidityStart>Immediately</ValidityStart>
        </GuestUser>
    </Set>
</Request>

 

to which, XG firewall answers with:

<?xml version="1.0" encoding="UTF-8"?>
<Response APIVersion="1702.1" IPS_CAT_VER="1">
<Login>
<status>Authentication Successful</status>
</Login>
<GuestUser transactionid="">
<Status code="200">Configuration applied successfully.</Status>
</GuestUser>
</Response>

 

That means that now I have no way of knowing this newly created user's password, as if I ask XG firewall for a <Get><GuestUser></GuestUser></Get> , all I get is the encripted password, which I can't use to log in to the WiFi-Guests network from the Captive Portal.

Also, I was unable to find a way to change such password from the API.

 

Is there a way to get a newly created Guest User's credentials from the API?

My current firmware is SFOS 17.5.8 MR-8.

Thank you.



This thread was automatically locked due to age.