Cloud Managed Networks

 View Only

Create new user for Aruba Central with REST API

This thread has been viewed 4 times
  • 1.  Create new user for Aruba Central with REST API

    Posted Sep 06, 2023 01:19 PM

    I would like to create new users for Aruba Central with the offered REST API. Unfortunately, I get the following error when trying to create a new user: {'error': 'The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.', 'status_code': 500}

    The JSON with the user data (just for testing purposes) looks like this: {'username': 'test@testt.com', 'password': 'mwskbdoetcjr', 'description': 'test', 'name': {'firstname': 'test', 'lastname': 'testt'}, 'phone': '', 'address': {'street': 'Feldstrasse 4', 'city': 'Maegenwil', 'state': 'Aargau', 'country': 'CH', 'zipcode': '5506'}, 'applications': [{'name': 'nms', 'info': [{'role': 'Aruba Central Administrator', 'scope': {'groups': ['allgroups']}}]}, {'name': 'account_setting', 'info': [{'role': 'Account Administrator'}]}]}

    The weird thing is that when I use the username "test@test.com", it works perfectly fine. So I assume that there is an error in the API.

    Can you please help me resolve this problem. Thanks a lot :)