You can grant users access to the Services tab. By default, new users have no permissions.
Grant Access by using the UI
Prerequisite:
- A DC/OS user account without the
dcos:superuser
permission.
-
Log into the DC/OS GUI as a user with the
dcos:superuser
permission.Figure 1. DC/OS UI login
-
Select Organization and choose Users or Groups.
-
Select the name of the user or group to grant the permission to.
Figure 2. Select user or group to grant permissions to
-
From the Permissions tab, click ADD PERMISSION.
-
Click INSERT PERMISSION STRING to toggle the dialog.
Figure 3. Insert Permission String
-
Copy and paste the permission in the Permissions Strings field. Choose the permission strings based on your security mode and click ADD PERMISSIONS and then Close.
Permissive
Services tab
Services tasks
Task details and logs
Strict
Services tab
Services tasks
Task details and logs
Granting Access by using the API
Prerequisites:
- You must have the DC/OS CLI installed and be logged in as a superuser.
- You must get the root cert before issuing the curl commands in this section.
Tips:
- Service resources often include
/
characters that must be replaced with%252F
in curl requests, as shown in the examples below. - When using the API to manage permissions, you must create the permission before granting it. If the permission already exists, the API will return an informative message and you can continue to assign the permission.
Permissive
Grant access to DC/OS Services tab
-
Create the permission.
-
Grant the following privileges to the user
uid
.
Grant access to DC/OS services task details and logs
-
Create the permission.
-
Grant the following privileges to the user
uid
.
Grant access to all services in the Services tab
-
Create the permission.
-
Grant the following privileges to the user
uid
.
Strict
Grant access to DC/OS Services tab
-
Create the permission.
-
Grant the following privileges to the user
uid
.
Grant access to DC/OS services task details and logs
-
Create the permission.
-
Grant the following privileges to the user
uid
.
Grant access to all services in the Services tab
-
Create the permission.
-
Grant the following privileges to the user
uid
.