Check Access Rights
For instance to see if we can read the res.partner
the model we can call check_access_rights
with operation
passed by position and raise_exception
passed by keyword (in order to get a true/false result rather than true/error).
GET /restapi/1.0/object/{object_name}/check_access_rights?operation={list_of_operations}
Request:
JSON Response:
XML Response:
Query Parameters:
operation – allowed for the user according to the access rights. One of
create
,write
,read
orunlink
.raise_exception – OPTIONAL. raise an
Error
or returnNone
, depending on the valueTrue
orFalse
(default: True)
Request Headers
Response Headers
Status Codes
Last updated