---
title: "Check user sudo permissions"
method: GET
path: "/api/ldap/sudo"
tags: ["User Management"]
---

# Check user sudo permissions

`GET /api/ldap/sudo`

Verify if a specific user has sudo/administrator privileges in the LDAP directory

## Query parameters

- `user` string, required

## Response `200`

Successfully checked sudo permissions

- object
  - `success` boolean
  - `message` string

## Other responses

- `203` — User does not have sudo permissions
- `400` — Missing required parameter
- `500` — Internal server error

## Changes

> 6 revisions in range; 4 could not be searched.

- **2025-08-05** (v1) `55c07c16d2e1` — 2 info
  - the endpoint scheme security `socaAuth AND socaToken` was added to the API
  - the endpoint scheme security `edhAuth AND edhToken` was removed from the API

[Change history](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api/changes/api/ldap/sudo/get.md)

---

[API](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api.md) · [All operations](https://skmtc.dev/aws-samples/apis/engineering-development-hub-edh-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aws-samples/engineering-development-hub-edh-api/revisions/058396b8f0f1/schema)
