You can create multiple users in the Domain Server without Enterprise Manager by following these steps.
- Create a sample user and export the users using the
ATPNAMES -ecommand. This generates a file namedsecurity.export.xml. - Edit the file and copy the Object Stanza. Update the
<Property name="userId">field with the new user ID. Repeat the Object Stanza for each additional user to create.
The password will be the same as the original copied user. Users can reset their passwords upon first login.
- After adding all users, import the file using the
ATPNAMES -zcommand.
If you already have these users in an older AutoPilot system, you can export them using ATPNAMES -e and import them with ATPNAMES -z.
You do not need to manually create usernames in Security Manager/Control Center. They can be automatically imported from the Domain Server when users log into Navigator/Manage. Ensure option 4 is enabled in the Authorization and Authentication table of WGS.
Additionally, administrators can reset a user's password via the REST API. Here's the command to do this:
curl -X "PATCH" \
"http://my.domain.server.net:8018/domain/v1/users/expuser/reset-password" \
-H "accept: /" \
-H "Authorization: Basic QWRtaWRtaW4=" \
-H "Content-Type: application/json" \
-d "{ \"password\": \"passexpuser123\" }"In this example, the password for user expuser is reset to passexpuser123.
The authorization token shown in the example is generic. You can get a token for your own credentials using the Swagger UI.