---
title: "Get Table Access Details"
method: GET
path: "/api/new_mdm/get_table_access_details"
tags: ["MDM NEW"]
---

# Get Table Access Details

`GET /api/new_mdm/get_table_access_details`

**Function**: `get_table_access_details`
**Type**: API Endpoint (GET)

**Purpose**:  
Retrieves access details for a user from the database.

**Parameters**:  
- `request`: The HTTP request object.
- `customer_key` (Header, required): A base64 encoded string containing `lscode` and `firmcode` for the customer.
- `user_code` (Header, required): The user code for whom access details are to be retrieved.
- `current_user` (str): The current user performing the operation, obtained via dependency injection.

**Returns**:  
A JSON response containing the access details for a user.

**Exceptions**:  
- `HTTPException`: If any exception occurs during the process, it raises an HTTPException with a 500 status code and the exception message.

## Headers

- `customer-key` string, required
- `user-code` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi.md) · [All operations](https://skmtc.dev/leapsurgebi/apis/leapsurgeapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/leapsurgebi/leapsurgeapi/revisions/5a6b1464bfeb/schema)
