Effective May 1, 2026, Okta will no longer sell or renew Advanced Server Access. Existing customers must migrate to Okta Privileged Access within one year of their next scheduled renewal date to maintain service. Read the FAQ | Learn about Okta Privileged Access
Lists all sudo Entitlements for your Team
OK
{- "list": [
- {
- "id": "226a1963-a1c8-4316-bb4d-da48f2e7652a",
- "created_at": "2018-04-07T00:00:00Z",
- "updated_at": "2018-04-07T00:00:00Z",
- "name": "name",
- "description": "desc",
- "commands": null,
- "structured_commands": [
- {
- "command_type": "executable",
- "command": "/bin/ls",
- "args_type": "none",
- "args": null,
- "rendered_command": ""
}, - {
- "command_type": "directory",
- "command": "/bin/",
- "args_type": null,
- "args": null,
- "rendered_command": ""
}
], - "opt_run_as": "",
- "opt_no_passwd": true,
- "opt_no_exec": false,
- "opt_set_env": false,
- "add_env": [ ],
- "sub_env": [ ]
}
]
}Creates a sudo Entitlement that allows a Group to run specific commands as sudo
| add_env | Array of strings or null <regex> A list of environment variables to include when running Entitlement commands. See the sudo documentation. |
| description | string or null <= 255 characters A description of the Entitlement |
| name required | string <regex> [ 1 .. 255 ] characters ^[\w\-_.]+$ The name of the Entitlement |
| opt_no_exec | boolean or null Whether to allow commands to execute child processes |
| opt_no_passwd | boolean or null Whether to require a password when sudo is run. This should generally not be used as Users don't require a password. |
| opt_run_as | string or null <regex> [ 1 .. 64 ] characters ^([%]{0,1})((([#])(\d+))|([\w\-_.]+)|((?i)[A-... A non-root user account used to run the command |
| opt_set_env | boolean or null Whether to allow overriding environment variables to commands |
Array of objects or null A list of commands to allow | |
| sub_env | Array of strings or null <regex> A list of environment variables to ignore when running Entitlement commands. See the sudo documentation. |
Created
{- "add_env": [ ],
- "commands": null,
- "created_at": "0001-01-01T00:00:00Z",
- "description": "desc",
- "id": "226a1963-a1c8-4316-bb4d-da48f2e7652a",
- "name": "name",
- "opt_no_exec": false,
- "opt_no_passwd": true,
- "opt_run_as": "",
- "opt_set_env": false,
- "structured_commands": [
- {
- "args": null,
- "args_type": "none",
- "command": "/bin/ls",
- "command_type": "executable",
- "rendered_command": ""
}, - {
- "args": null,
- "args_type": null,
- "command": "/bin/",
- "command_type": "directory",
- "rendered_command": ""
}
], - "sub_env": [ ],
- "updated_at": "0001-01-01T00:00:00Z"
}{- "add_env": [ ],
- "commands": null,
- "created_at": "2018-04-07T00:00:00Z",
- "description": "desc",
- "id": "226a1963-a1c8-4316-bb4d-da48f2e7652a",
- "name": "name",
- "opt_no_exec": false,
- "opt_no_passwd": true,
- "opt_run_as": "",
- "opt_set_env": false,
- "structured_commands": [
- {
- "args": null,
- "args_type": "none",
- "command": "/bin/ls",
- "command_type": "executable",
- "rendered_command": ""
}, - {
- "args": null,
- "args_type": null,
- "command": "/bin/",
- "command_type": "directory",
- "rendered_command": ""
}
], - "sub_env": [ ],
- "updated_at": "2018-04-07T00:00:00Z"
}Retrieves the specified sudo Entitlement
OK
{- "add_env": [ ],
- "commands": null,
- "created_at": "2018-04-07T00:00:00Z",
- "description": "desc",
- "id": "226a1963-a1c8-4316-bb4d-da48f2e7652a",
- "name": "name",
- "opt_no_exec": false,
- "opt_no_passwd": true,
- "opt_run_as": "",
- "opt_set_env": false,
- "structured_commands": [
- {
- "args": null,
- "args_type": "none",
- "command": "/bin/ls",
- "command_type": "executable",
- "rendered_command": ""
}, - {
- "args": null,
- "args_type": null,
- "command": "/bin/",
- "command_type": "directory",
- "rendered_command": ""
}
], - "sub_env": [ ],
- "updated_at": "2018-04-07T00:00:00Z"
}Updates the specified sudo Entitlement
| add_env | Array of strings or null <regex> A list of environment variables to include when running Entitlement commands. See the sudo documentation. |
| description | string or null <= 255 characters A description of the Entitlement |
| name required | string <regex> [ 1 .. 255 ] characters ^[\w\-_.]+$ The name of the Entitlement |
| opt_no_exec | boolean or null Whether to allow commands to execute child processes |
| opt_no_passwd | boolean or null Whether to require a password when sudo is run. This should generally not be used as Users don't require a password. |
| opt_run_as | string or null <regex> [ 1 .. 64 ] characters ^([%]{0,1})((([#])(\d+))|([\w\-_.]+)|((?i)[A-... A non-root user account used to run the command |
| opt_set_env | boolean or null Whether to allow overriding environment variables to commands |
Array of objects or null A list of commands to allow | |
| sub_env | Array of strings or null <regex> A list of environment variables to ignore when running Entitlement commands. See the sudo documentation. |
No Content
{- "add_env": [ ],
- "commands": null,
- "created_at": "2018-04-07T00:00:00Z",
- "description": "A new description",
- "id": "226a1963-a1c8-4316-bb4d-da48f2e7652a",
- "name": "name",
- "opt_no_exec": false,
- "opt_no_passwd": true,
- "opt_run_as": "",
- "opt_set_env": false,
- "structured_commands": [
- {
- "args": null,
- "args_type": "none",
- "command": "/bin/ls",
- "command_type": "executable",
- "rendered_command": ""
}, - {
- "args": null,
- "args_type": null,
- "command": "/bin/",
- "command_type": "directory",
- "rendered_command": ""
}
], - "sub_env": [ ],
- "updated_at": "2018-04-07T00:00:00Z"
}Deletes the specified sudo Entitlement. You can't delete an Entitlement that is assigned to a Project.
No Content
List all sudo Entitlements for a Group in a Project
OK
{- "list": [
- {
- "id": "2952722b-5aa8-4cb0-80d3-348d8484cc73",
- "sudo_id": "5db14e13-3bee-4099-a105-c6e8aeeb7613",
- "sudo_name": "eng_commands",
- "name": "eng_commands",
- "project_id": "72f5d809-c319-4c0a-a0b2-e4058088a491",
- "group_id": "ab08ae51-0d71-44be-99d9-ea451bc9fee3",
- "order": 50,
- "created_at": "2024-03-01T19:48:25.083712Z",
- "deleted_at": null
}
]
}Assigns a sudo Entitlement to a Group in a Project
No Content
{- "order": 50,
- "sudo_id": "5db14e13-3bee-4099-a105-c6e8aeeb7613"
}Removes the specified sudo Entitlement from a Group in a Project
No Content