Has Permission
POST/user-svc/self/has/:permission
Check whether the caller user has a specific permission.
Ideally, this endpoint should rarely be used, as the JWT token
already includes all user roles. Caching the List Permissions
and List Grants
responses allows services to determine user authorization
without repeatedly calling this endpoint.
Request
Responses
- 200
- 400
- 401
OK
Invalid JSON or missing permission id
Unauthorized