Create Aria Operations for Logs user via API using SwaggerUI
search cancel

Create Aria Operations for Logs user via API using SwaggerUI

book

Article ID: 382067

calendar_today

Updated On: 05-13-2025

Products

VMware Aria Suite

Issue/Introduction

There is no SMTP server in the environment or there is another need to create new users and define the intial password as well as reset user passwords.

  • Configuring a new user's default password can only be accomplished via API.
  • Aria Operations for Logs 8.18 introduced a SwaggerUI to allow for use of the API via a web browser.

Environment

VMware Aria Operations for Logs 8.18.x

Resolution

  1. Access the REST API with the following URL: https://<Operations_for_Logs_host>/rest-api

  2. Authorize the API using steps from Obtain a sessionId to Authorize APIs in the Swagger UI

  3. Scroll down the page to the users section and click to expand



  4. Click to expand POST /users



  5. Click Try it out



  6. Modify the Request body to include a password for the user

      1. Insert a line in the Request body after the username line

      2. On the newly inserted line, type:

        "password": "", 

      3. Delete the email line from the Request body

        Note: If you include an email address, Aria Operations for Logs will ignore the password configured in the Response body and will attempt to send an email with a password reset link.




  7. Modify the username, password, and roleIds in the Request body as desired and click Execute

      • Usernames are case sensitive

      • Type the desired password between the quotation marks after the colon (where you see #######).

        Example: "password": "##########",

      • The default roleIds are:

        00000000-0000-0000-0000-000000000001 - Super Admin
        00000000-0000-0000-0000-000000000002 - User



  8. Scroll down to the Server response to verify Code 201 was received and review the details of the newly created user

    Note: Ensure you are reviewing the Server response and not the Responses section. The Responses section contains sample responses and is populated with sample data.



Log in to Aria Operations for Logs and navigate to Management > Access Control to manage the user further.

Note:  To reset a user password you would use the Patch /users/{userId}/password workfllow from the same users section.