---
title: "check permissions of user"
method: POST
path: "/rbac/permission/check"
tags: ["rbac CheckPermissionForUser"]
---

# check permissions of user

`POST /rbac/permission/check`

CheckPermissionForUser

## Request body

- MessageCheckPermissionForUserReq
  - `permissions` StructsRbacPermission[]
    - `action` string
    - `resource` string
  - `userId` string

## Response `200`

OK

- object
  - `code` integer
  - `data` object
    - `result` boolean
  - `message` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error

---

[API](https://skmtc.net/pingcap/apis/em-ui-api.md) · [All operations](https://skmtc.net/pingcap/apis/em-ui-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pingcap/em-ui-api/revisions/631e4b26b7e8/schema)
