Developer

 View Only
Expand all | Collapse all

WIFI GUEST USER FROM REST API ARUBA CENTRAL

This thread has been viewed 36 times
  • 1.  WIFI GUEST USER FROM REST API ARUBA CENTRAL

    Posted 20 days ago

    Good morning community,

    I want to know if at the API level it is possible for a guest user of an SSID network that I am broadcasting from my APs to change the password not for the AP but for the user of the specific SSID.

    I would greatly appreciate clarification and if it exists you could give me some guidance.

    Thanks



  • 2.  RE: WIFI GUEST USER FROM REST API ARUBA CENTRAL

    Posted 20 days ago
    Hello,
    I don't know if I'm understanding you correctly, do you want a guest to be able to update their data via the API? You could update your guest visitor account from the following call: put /guest/v1/portals/{portal_id}/visitors/{visitor_id}
    But of course, that would be for a guest where you have previously created a splash oage in Aruba Central. In the visitor field you would fill in the following: 
     
    {
      'name": "string",
      'id": {},
      'company_name": {},
      'user": {
        'phone": {},
        'email": {}
      },
      'is_enabled": true,
      'valid_till_no_limit": false,
      'valid_till_days": 1,
      'valid_till_hours": 0,
      'valid_till_minutes": 0,
      'notify": false,
      'notify_to": "email",
      'password": {},
      'status": true,
      'created_at": {},
      'expire_at": {}
    }
     
    You should test if the password field works, i.e. by changing that password to a new one, it should work. 
     
    Here the mitigating factor that I see is that if you want them to access through the API, you will have to generate a token just for that.
     
    Is this what you want to do?
     
    Best Regards


    ------------------------------
    Daniel Ruiz
    -----------------------
    Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support.
    Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC.
    ------------------------------



  • 3.  RE: WIFI GUEST USER FROM REST API ARUBA CENTRAL

    Posted 20 days ago

    Hi Daniel.

    Thank you very much for your answer, yes. I do indeed want an insider created on a Wi-Fi network to be able to change their Wi-Fi connection password.

    Does this call work for me or does it only update contact information?

    I see a 'password' field: {}, however I am asking you this question.




  • 4.  RE: WIFI GUEST USER FROM REST API ARUBA CENTRAL

    Posted 20 days ago

    Hi Richard.

    You will need some programing to do. You have REST API available for Guest  visitors like put/guest/v1/portals/{portal_id}/visitors/{visitor_id}

    Best, Gorazd



    ------------------------------
    Gorazd Kikelj
    MVP Guru 2024
    ------------------------------



  • 5.  RE: WIFI GUEST USER FROM REST API ARUBA CENTRAL

    Posted 20 days ago

    You can change any field Daniel listed in json example.

    You will need to create a web page with appropriate authorization for guest to login and change the password. You also need to create a guest portal in Central as this is required info.

    Clearpass has self-service portal but Central does not.

    Best, Gorazd



    ------------------------------
    Gorazd Kikelj
    MVP Guru 2024
    ------------------------------



  • 6.  RE: WIFI GUEST USER FROM REST API ARUBA CENTRAL

    Posted 20 days ago

    Hi Gorazd Kikely. Thank you very much for your answer, yes. I do indeed want an insider created in a wifi network to be able to change their wifi connection password.

    I'm going to start testing, guys, thank you very much for your guide; I'm new to the ARUBA APIs.




  • 7.  RE: WIFI GUEST USER FROM REST API ARUBA CENTRAL

    Posted 20 days ago

    The great resource is HPE aruba networking Developers Portal 

    Looks also on pycentral for help in managing and easier access to API.

    Another great resource and help is Central Automation Studio.

    https://github.com/aruba/central-automation-studio

    https://central.wifidownunder.com/settings.html

    Best, Gorazd



    ------------------------------
    Gorazd Kikelj
    MVP Guru 2024
    ------------------------------



  • 8.  RE: WIFI GUEST USER FROM REST API ARUBA CENTRAL

    Posted 20 days ago

    That's right, that's what Gorazd says, that through the JSON you can modify fields, the ones I put at the beginning.

    Play a bit with the swagger of the Central API and if you get stuck, ask us your questions.



    ------------------------------
    Daniel Ruiz
    -----------------------
    Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support.
    Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC.
    ------------------------------



  • 9.  RE: WIFI GUEST USER FROM REST API ARUBA CENTRAL

    Posted 19 days ago

    Thank you very much, Daniel, I want to thank you in advance. I was checking in the swagger but there are too many options. Could you tell me which category that visitor is in? From then on I could defend myself better.




  • 10.  RE: WIFI GUEST USER FROM REST API ARUBA CENTRAL

    Posted 19 days ago

    Hello Gorazd Kikely.

    Would you be so kind as to tell me which option I can use to find the visitors? I'm checking the API Swagger in my central Aruba but there are too many options.

    If you can tell me where to find it.

    I would appreciate it.




  • 11.  RE: WIFI GUEST USER FROM REST API ARUBA CENTRAL

    Posted 19 days ago

    Hello Richard,
    No, you are in another API run for something else. To modify guest users, you have to go here. Here you can create a new portal (splash page)

    Here you can create a new guest user:

    And here you can modify this new user account

    Play with the API, and if you have problems let us know.

    Thanks. Best regards



    ------------------------------
    Daniel Ruiz
    -----------------------
    Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.
    If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support.
    Check https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC.
    ------------------------------