Skip to main content

Get the sudoers entries that apply to one inventory administrator

GET 

/computers/:computerId/sudoers/admin/:adminSid

Returns the sudoers entries that grant the account privileges, including entries reached through user lists, user aliases, and domain groups the account belongs to. Local group membership is not included. Accounts are addressed by their inventory SID, which for local Linux accounts looks like uid:1001.

If the sudoers service rejects the request (for example, the computer is not Linux, the account is not a user or group, the SID is not in the inventory, or no sudoers exists), the server does not report it: the response is 200 with an empty body and no Content-Type. Only GET is routed.

Required role: superadmin or admin.

Request​

Responses​

Privileges for the account, or an empty body when the sudoers service returned an error.