Sometimes you do not want to connect your WorkspaceOne Access to SMTP, but you need to create a local user or reset a local user password (for example, in a test environment or fast PoC deployment). Below you can find an instruction on how to use REST API to set/reset a password for a local user.
Prerequisites:
First of all, we need a local user. If you do not have it, create a new one. As you can see below, the email address is required. It is because, on the email address you will receive an initial password. We do not have the SMTP server, so we will create a user from UI and set our password through REST API.


Set a password using REST API:
In this case, I will use the Postman application, but you can use any tool that you like (for example, curl).
We need to do two API requests:
1. Get REST API Bearer Token
2. Get UserID
2. Set a new password and activate user
1. Get API Token
Method: POST
URL: /SAAS/API/1.0/REST/auth/system/login
Headers: Content-Type: application/json
Authorization: No Auth
What we need from response: sessionToken
Body:
{
"username": "admin",
"password": "password",
"issueToken": "true"
}

2. Get user ID (replace “pawel.koc” with your username)
Method: GET
URL: /SAAS/jersey/manager/api/scim/Users?filter=username%20eq%20%22pawelkoc%22
Headers: Content-Type: application/json
Authorization: Bearer Token
What we need from response: id
Body: empty

3. Set a new password for local user (ID comes from point 2)
Method: PATCH
URL: /SAAS/jersey/manager/api/scim/Users/5d8d75a6-5849-4e3f-a25c-9295a071d54c
Headers: Content-Type: application/json
Authorization: Bearer Token
Body:
{
"password": "VMware1!"
}

That’s all. Now you can log using your local account with new password.
Stay tunned!