Skip to main content

Get Roles for User

Get all roles for a specific user.

caution

This endpoint has been deprecated and will be phased out at the end of 2023. Please update any existing usages of it to use the Query endpoint instead.

Endpoint

GET /v1/users/:userId/roles

Request

curl "https://api.warrant.dev/v1/users/15ksdf87a23g/roles" \
-H "Authorization: ApiKey YOUR_KEY"

Response

[
{
"roleId": "admin"
}
]