rbac_permissions_users_list
GET/rbac/permissions/users/
Get a users's assigned object permissions
Request
Query Parameters
ordering string
Which field to use when ordering the results.
page integer
A page number within the paginated result set.
page_size integer
Number of results to return per page.
search string
A search term.
user_id integer
Responses
- 200
- 400
- 403
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
pagination
object
required
next numberrequired
previous numberrequired
count numberrequired
current numberrequired
total_pages numberrequired
start_index numberrequired
end_index numberrequired
results
object[]
required
id integerrequired
codename stringrequired
model Python model class name (string)required
app_label stringrequired
object_pk stringrequired
name stringrequired
app_label_verbose stringrequired
Get app label from permission's model
model_verbose stringrequired
Get model label from permission's model
object_description stringnullablerequired
Get model description from attached model. This operation takes at least one additional query, and the description is only shown if the user/role has the view_ permission on the object
{
"pagination": {
"next": 0,
"previous": 0,
"count": 0,
"current": 0,
"total_pages": 0,
"start_index": 0,
"end_index": 0
},
"results": [
{
"id": 0,
"codename": "string",
"model": "string",
"app_label": "string",
"object_pk": "string",
"name": "string",
"app_label_verbose": "string",
"model_verbose": "string",
"object_description": "string"
}
]
}
- application/json
- Schema
- Example (from schema)
Schema
non_field_errors string[]
code string
property name* any
Validation Error
{
"non_field_errors": [
"string"
],
"code": "string"
}
- application/json
- Schema
- Example (from schema)
Schema
detail stringrequired
code string
{
"detail": "string",
"code": "string"
}
Loading...