Add a local user account
Using the IAM API
Prerequisite:
- DC/OS Authentication token exported into the environment as
TOKEN
.
To add a local user account using the DC/OS Identity and Access Management (IAM) API, replace <uid>
and <password>
with the corresponding values and execute the following command:
curl -i -X PUT http://<host-ip>/acs/api/v1/users/<uid> -d '{"password": "<password>"}' -H 'Content-Type: application/json' -H "Authorization: token=$TOKEN"
List local user accounts
Using the IAM API
Prerequisite:
- DC/OS Authentication token exported into the environment as
TOKEN
.
To list all configured user accounts using the DC/OS Identity and Access Management (IAM) API, execute the following command:
curl -i -X GET http://<host-ip>/acs/api/v1/users -H 'Content-Type: application/json' -H "Authorization: token=$TOKEN"
Change a local user password
Using the IAM API
Prerequisite:
- DC/OS Authentication token exported into the environment as
TOKEN
.
To change a local user account’s password using the DC/OS Identity and Access Management (IAM) API replace <uid>
and <password>
with the corresponding values and execute the following command:
curl -i -X PATCH http://<host-ip>/acs/api/v1/users/<uid> -d '{"password": "<password>"}' -H 'Content-Type: application/json' -H "Authorization: token=$TOKEN"
Remove a local user account
Using the IAM API
Prerequisite:
- DC/OS Authentication token exported into the environment as
TOKEN
.
To delete a local user account using the DC/OS Identity and Access Management (IAM) API, replace <uid>
with the corresponding value and execute the following command:
curl -i -X DELETE http://<host-ip>/acs/api/v1/users/<uid> -H 'Content-Type: application/json' -H "Authorization: token=$TOKEN"
Using the UI
- Log in to the UI.
- From the Users screen, select the uid and click Delete.
- Click Delete to confirm the action.