List the current roles assigned to a user
mkanoor opened this issue · 0 comments
mkanoor commented
User Story
The currently logged in user (normal user or admin user) would like to know the roles that he is assigned to.
Impacts
The current get_principal_access list all the permissions assigned to a user, we would like to use the same api but limit the scope to roles. The default scope for the get_principal_access could be access but a user could curtail it at the role level.
Role
A user
Assumptions
- default type is
permission
API Details
API | Detail |
---|---|
Method | GET |
Path | /api/v1/access/?type=role |
Acceptance Criteria
- Request returns all roles for a user when
type=role
is provided - Request returns 400 when bad type is provided