Get Permissions by Role
GET/user-svc/role/:roleId/permissions
Retrieve permissions associated with a specific role ID.
Request
Path Parameters
roleId stringrequired
Role ID
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
permissions
object[]
createdAt string
description string
id string
eg. "user.viewer"
name string
eg. "User Viewer"
ownerId string
Service who owns the permission
updatedAt string
{
"permissions": [
{
"createdAt": "string",
"description": "string",
"id": "string",
"name": "string",
"ownerId": "string",
"updatedAt": "string"
}
]
}
Invalid JSON
- application/json
- Schema
Schema
string
Unauthorized
- application/json
- Schema
Schema
string
Internal Server Error
- application/json
- Schema
Schema
string
Loading...