Aruba Central

 View Only
last person joined: yesterday 

Expand all | Collapse all

I can't create a guest user through the Aruba Central API.

This thread has been viewed 3 times
  • 1.  I can't create a guest user through the Aruba Central API.

    Posted 2 days ago

    Hi everyone,

    I'm working with the following endpoint: guest/v1/portals/{portal_id}/visitors to create a guest user on the network. However, I can't create it because I only get a 500 error without any further details.

    Here is the JSON body I am testing. I have modified it many times, but when making the request, there is no clear response.

    {
      "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": {}
    }

    I look forward to your comments.



  • 2.  RE: I can't create a guest user through the Aruba Central API.

    EMPLOYEE
    Posted yesterday

    You should just enter the fields that you want to fill (or are mandatory, like name). This example works for me:

    {
      "name": "via-api3@arubadomain.com",
      "user": {
          "phone": null,
          "email": "via-api@arubaarubadomain.com"
      },
      "is_enabled": true,
      "valid_till_days": 1,
      "password": "secret-passwd123"
    }

    When I tried to create a duplicate user, where the "name" fielf exists already, I also get the 500 error.

    Hopefully this sample will get you started...



    ------------------------------
    Herman Robers
    ------------------------
    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. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.

    In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
    ------------------------------